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

Config key
header-atn

This type provides the following service implementations:

  • io.helidon.security.spi.SecurityProvider

  • io.helidon.security.spi.AuthenticationProvider

Configuration options

Table 1. Optional configuration options
key type default value description

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.