Class JwtAuthenticationProperties
java.lang.Object
org.finos.fluxnova.bpm.spring.boot.starter.rest.JwtAuthenticationProperties
@ConfigurationProperties(prefix="fluxnova.bpm.jwt")
public class JwtAuthenticationProperties
extends Object
Configuration properties for JWT-based REST API authentication.
All properties are bound under the fluxnova.bpm.jwt prefix, which means
they can be supplied as environment variables using Spring Boot's relaxed binding:
FLUXNOVA_BPM_AUTH_ENABLED=true
FLUXNOVA_BPM_AUTH_TYPE=jwt
FLUXNOVA_BPM_JWT_JWKS_URL=https://login.microsoftonline.com/{tenant}/discovery/v2.0/keys
FLUXNOVA_BPM_JWT_ISSUER=https://login.microsoftonline.com/{tenant}/v2.0
FLUXNOVA_BPM_JWT_AUDIENCE=api://your-client-id
FLUXNOVA_BPM_JWT_USER_CLAIM_NAME=preferred_username
FLUXNOVA_BPM_JWT_GROUPS_CLAIM_NAME=groups
Or as application.yml / application.properties:
fluxnova:
bpm:
auth:
enabled: true
type: jwt
jwt:
jwks-url: https://login.microsoftonline.com/{tenant}/discovery/v2.0/keys
issuer: https://login.microsoftonline.com/{tenant}/v2.0
audience: api://your-client-id
user-claim-name: preferred_username
groups-claim-name: groups
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAudience(String audience) voidsetGroupsClaimName(String groupsClaimName) voidsetHeaderName(String headerName) voidsetHeaderPrefix(String headerPrefix) voidvoidsetJwksUrl(String jwksUrl) voidsetUserClaimName(String userClaimName)
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
JwtAuthenticationProperties
public JwtAuthenticationProperties()
-
-
Method Details
-
getJwksUrl
-
setJwksUrl
-
getIssuer
-
setIssuer
-
getAudience
-
setAudience
-
getHeaderName
-
setHeaderName
-
getHeaderPrefix
-
setHeaderPrefix
-
getUserClaimName
-
setUserClaimName
-
getGroupsClaimName
-
setGroupsClaimName
-