- JwtAuthProvider (microprofile.jwt.auth) Configuration
MP-JWT Auth configuration is defined by the spec (options prefixed with `mp.jwt.`), and we add a few configuration options for the security provider (options prefixed with `security.providers.mp-jwt-auth.`)
Configuration options
| key | type | default value | description |
|---|---|---|---|
mp.jwt.decrypt.key.algorithm | string (RSA-OAEP, RSA-OAEP-256) | Expected key management algorithm supported by the MP JWT endpoint. Supported algorithms are either Allowed values:
| |
mp.jwt.decrypt.key.location | string | Private key for decryption of encrypted claims. The value may be a relative path or a URL. | |
mp.jwt.token.cookie | string | Bearer | Specific cookie property name where we should search for JWT property. |
mp.jwt.token.header | string | Authorization | Name of the header expected to contain the token. |
mp.jwt.verify.audiences | string[] | Expected audiences of incoming tokens. | |
mp.jwt.verify.clock.skew | int | 5 | Clock skew to be accounted for in token expiration and max age validations in seconds. |
mp.jwt.verify.issuer | string | Expected issuer in incoming requests. | |
mp.jwt.verify.publickey | string | String representation of the public key. | |
mp.jwt.verify.publickey.location | string | Path to public key. The value may be a relative path or a URL. | |
mp.jwt.verify.token.age | int | Maximal expected token age in seconds. If this value is set, | |
security.providers.mp-jwt-auth.allow-impersonation | boolean | false | Whether to allow impersonation by explicitly overriding username from outbound requests using io.helidon.security.EndpointConfig.PROPERTY_OUTBOUND_ID property. By default this is not allowed and identity can only be propagated. |
security.providers.mp-jwt-auth.atn-token.default-key-id | string | Default JWT key ID which should be used. | |
security.providers.mp-jwt-auth.atn-token.handler | Token handler to extract username from request. Uses | ||
security.providers.mp-jwt-auth.atn-token.jwk.resource | JWK resource for authenticating the request | ||
security.providers.mp-jwt-auth.atn-token.jwt-audience | string | Audience expected in inbound JWTs. | |
security.providers.mp-jwt-auth.atn-token.verify-key | string | Path to public key. The value may be a relative path or a URL. | |
security.providers.mp-jwt-auth.authenticate | boolean | true | Whether to authenticate requests. |
security.providers.mp-jwt-auth.load-on-startup | boolean | false | Whether to load JWK verification keys on server startup Default value is |
security.providers.mp-jwt-auth.optional | boolean | false | Whether authentication is required. By default, request will fail if the username cannot be extracted. If set to false, request will process and this provider will abstain. |
security.providers.mp-jwt-auth.principal-type | SubjectType (USER, SERVICE) | USER | Principal type this provider extracts (and also propagates). |
security.providers.mp-jwt-auth.propagate | boolean | true | Whether to propagate identity. |
security.providers.mp-jwt-auth.sign-token | Configuration of outbound rules. |