Class AuthConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf basic auth should be enabled.Form Auth configbooleanRequire that all registered HTTP authentication mechanisms must complete the authentication.booleanIf this is true and credentials are present then a user will always be authenticated before the request progresses. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
basic
If basic auth should be enabled. If both basic and form auth is enabled then basic auth will be enabled in silent mode. The basic auth is enabled by default if no authentication mechanisms are configured or Quarkus can safely determine that basic authentication is required. -
form
Form Auth config -
proactive
If this is true and credentials are present then a user will always be authenticated before the request progresses. If this is false then an attempt will only be made to authenticate the user if a permission check is performed or the current user is required for some other reason. -
inclusive
Require that all registered HTTP authentication mechanisms must complete the authentication.Typically, this property has to be true when the credentials are carried over mTLS, when both mTLS and another authentication, for example, OIDC bearer token authentication, must succeed. In such cases, `SecurityIdentity` created by the first mechanism, mTLS, can be injected, identities created by other mechanisms will be available on `SecurityIdentity`. The mTLS mechanism is always the first mechanism, because its priority is elevated when inclusive authentication is enabled. The identities can be retrieved using utility method as in the example below:
io.quarkus.vertx.http.runtime.security.HttpSecurityUtils.getSecurityIdentities(securityIdentity)This property is false by default which means that the authentication process is complete as soon as the first `SecurityIdentity` is created.
This property will be ignored if the path specific authentication is enabled.
-
-
Constructor Details
-
AuthConfig
public AuthConfig()
-