HeaderAtnProvider (security.providers.header) Configuration

Security provider that extracts a username (or service name) from a header.

Type: io.helidon.security.providers.header.HeaderAtnProvider

Config key
header-atn
Copied

This type provides the following service implementations:

  • io.helidon.security.spi.SecurityProvider

  • io.helidon.security.spi.AuthenticationProvider

Configuration options

Optional configuration options
keytypedefault valuedescription
atn-token 

Token handler to extract username from request.

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.

outbound 

Configure outbound target for identity propagation.

outbound-token 

Token handler to create outbound headers to propagate identity. If not defined, #atnTokenHandler will be used.

principal-type

SubjectType (USER, SERVICE)

USER

Principal type this provider extracts (and also propagates).

propagate

boolean

false

Whether to propagate identity.