Description

JWT authentication provider.

Usages

Configuration options

KeyKindTypeDefault ValueDescription
allow-impersonationVALUEBooleanfalseWhether to allow impersonation by explicitly overriding username from outbound requests using io.helidon.security.EndpointConfig#PROPERTY_OUTBOUND_ID property
allow-unsignedVALUEBooleanfalseConfigure support for unsigned JWT
atn-token.handlerVALUEi.h.s.u.TokenHandler Token handler to extract username from request
atn-token.jwk.resourceVALUEi.h.c.c.Resource JWK resource used to verify JWTs created by other parties
atn-token.jwt-audienceVALUEString Audience expected in inbound JWTs
atn-token.jwt-issuerVALUEString Issuer expected in inbound JWTs
atn-token.verify-signatureVALUEBooleantrueConfigure whether to verify signatures
authenticateVALUEBooleantrueWhether to authenticate requests
optionalVALUEBooleanfalseWhether authentication is required
principal-typeVALUEi.h.s.SubjectTypeUSERPrincipal type this provider extracts (and also propagates)
propagateVALUEBooleantrueWhether to propagate identity
sign-tokenVALUEi.h.s.p.c.OutboundConfig Configuration of outbound rules
sign-token.jwk.resourceVALUEi.h.c.c.Resource JWK resource used to sign JWTs created by us
sign-token.jwt-issuerVALUEString Issuer used to create new JWTs
use-jwt-groupsVALUEBooleantrueClaim groups from JWT will be used to automatically add groups to current subject (may be used with jakarta.annotation.security.RolesAllowed annotation)

See the manifest for all available types.