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 |
|---|---|---|---|
|
string (RSA-OAEP, RSA-OAEP-256) |
|
Expected key management algorithm supported by the MP JWT endpoint.
Supported algorithms are either Allowed values:
|
|
string |
|
Private key for decryption of encrypted claims. The value may be a relative path or a URL. |
|
string |
|
Specific cookie property name where we should search for JWT property. |
|
string |
|
Name of the header expected to contain the token. |
|
string[] |
|
Expected audiences of incoming tokens. |
|
int |
|
Clock skew to be accounted for in token expiration and max age validations in seconds. |
|
string |
|
Expected issuer in incoming requests. |
|
string |
|
String representation of the public key. |
|
string |
|
Path to public key. The value may be a relative path or a URL. |
|
int |
|
Maximal expected token age in seconds. If this value is set, |
|
boolean |
|
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. |
|
string |
|
Default JWT key ID which should be used. |
|
|
Token handler to extract username from request.
Uses |
|
|
|
JWK resource for authenticating the request |
|
|
string |
|
Audience expected in inbound JWTs. |
|
string |
|
Path to public key. The value may be a relative path or a URL. |
|
boolean |
|
Whether to authenticate requests. |
|
boolean |
|
Whether to load JWK verification keys on server startup
Default value is |
|
boolean |
|
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. |
|
SubjectType (USER, SERVICE) |
|
Principal type this provider extracts (and also propagates). |
|
boolean |
|
Whether to propagate identity. |
|
|
Configuration of outbound rules. |