Microservices
Updated On 03 September 2024 | Min(s) read

Enabling Authentication by using JWT - MS

JWT signature is used to verify that the token is signed by the sender and not altered. The signature is created by using the Header and Payload segments, a signing algorithm, and a secret or public key.

To enable JWT Authorization set ms.security.tokencheck.enabled as Y.

Properties Description
JWT_TOKEN_ISSUER Identifies the issuer of the authentication token.
JWT_TOKEN_PUBLIC_KEY Indicates Base64 encoded public key content that can be directly loaded as a public key certificate.
JWT_TOKEN_PRINCIPAL_CLAIM Indicates the claim in which the user principal is provided.
ID_TOKEN_SIGNED Enables the JWT signature validation along with the header and payload.

Deployment

This section explains you about how to deploy the WAR file for the following stacks:

The JWT Authorization is disabled in AWS, Azure, and K8 stacks by default.

AWS

To deploy AWS, set the following JWT configuration properties as Environment Variable in API container of both in install-aws.sh and install-aws-postgresql.sh.

Azure

To deploy Azure, set the following JWT configuration properties as Environment Variable in API container of both in install.sh/install-postgresql.sh and install.bat/install-postgresql.bat..

K8

To deploy in K8, go to \ms-party-package\ms-party-package-docker\src\docker\k8\on-premise\svc\templates\svc\ and configure the following JWT configurations in party-configmap.yaml.

If value for a property has not been set in start scripts, then the respective JWT configuration properties's values will be taken from values.yaml.

Copyright © 2020- Temenos Headquarters SA

Published on :
Tuesday, September 2, 2025 12:39:03 PM IST