- JwtProvider (security.providers.jwt) Configuration
JWT authentication provider
Type: io.helidon.security.providers.jwt.JwtProvider
Config keyjwtcontent_copyThis type provides the following service implementations:
io.helidon.security.spi.SecurityProviderio.helidon.security.spi.AuthenticationProvider
Configuration options
| key | type | default value | description |
|---|---|---|---|
allow-impersonation | boolean | false | Whether to allow impersonation by explicitly overriding username from outbound requests using EndpointConfig.PROPERTY_OUTBOUND_ID property. By default this is not allowed and identity can only be propagated. |
allow-unsigned | boolean | false | Configure support for unsigned JWT. If this is set to |
atn-token.handler | Token handler to extract username from request. | ||
atn-token.jwk.resource | JWK resource used to verify JWTs created by other parties. | ||
atn-token.jwt-audience | string | Audience expected in inbound JWTs. | |
atn-token.verify-signature | boolean | true | Configure whether to verify signatures. Signatures verification is enabled by default. You can configure the provider not to verify signatures. <b>Make sure your service is properly secured on network level and only accessible from a secure endpoint that provides the JWTs when signature verification is disabled. If signature verification is disabled, this service will accept <i>ANY</i> JWT</b> |
authenticate | boolean | true | Whether to authenticate requests. |
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. |
principal-type | SubjectType (USER, SERVICE) | USER | Principal type this provider extracts (and also propagates). |
propagate | boolean | true | Whether to propagate identity. |
sign-token | Configuration of outbound rules. | ||
sign-token.jwk.resource | JWK resource used to sign JWTs created by us. | ||
sign-token.jwt-issuer | string | Issuer used to create new JWTs. | |
use-jwt-groups | boolean | true | Claim |