HttpBasicAuthProvider (security.providers.httpauth) Configuration

HTTP Basic Authentication provider

Type: io.helidon.security.providers.httpauth.HttpBasicAuthProvider

Config key
http-basic-auth
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
optional

boolean

false

Whether authentication is required. By default, request will fail if the authentication cannot be verified. If set to false, request will process and this provider will abstain.

outbound 

Add a new outbound target to configure identity propagation or explicit username/password.

principal-type

SubjectType (USER, SERVICE)

USER

Principal type this provider extracts (and also propagates).

realm

string

helidon

Set the realm to use when challenging users.

users 

Set user store to validate users. Removes any other stores added through #addUserStore(SecureUserStore).