Configuration Reference
Version:5.5.3
Micronaut Security Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Where the user is redirected to after a successful login. Default value ("/"). |
|
java.lang.String |
Where the user is redirected to after a failed login. Default value ("/"). |
|
java.lang.String |
URL where the user is redirected after logout. Default value ("/"). |
|
boolean |
If true, the user should be redirected back to the unauthorized request that initiated the login flow. Supersedes the <code>login-success</code> configuration for those cases. Default value false. |
|
boolean |
Sets whether Redirection configuration enabled. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the cookie is a session cookie. A session cookie does not have an expiration date. |
|
java.lang.String |
Sets the domain name of this Cookie. |
|
java.lang.Boolean |
Whether the Cookie can only be accessed via HTTP. Default value ({@value #DEFAULT_HTTPONLY}). |
|
java.lang.Boolean |
Sets whether the cookie is secured. Defaults to the secure status of the request. |
|
java.time.Duration |
Sets the maximum age of the cookie. |
|
Sets the same-site setting of the cookie. Default value null. Value is case sensitive. Allowed values: |
|
|
boolean |
Sets whether JWT cookie configuration is enabled. Default value (true). |
|
java.lang.String |
Cookie Name. Default value ("JWT_REFRESH_TOKEN"). |
|
java.lang.String |
Sets the path of the cookie. Default value (OauthControllerConfigurationProperties.DEFAULT_PATH). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
a regular expression to match the service id. |
|
java.lang.String |
a regular expression to match the uri. |
|
java.util.regex.Pattern |
|
|
java.util.regex.Pattern |
|
|
boolean |
Enables TokenPropagationHttpClientFilter. Default value false |
|
java.lang.String |
Configures TokenPropagationHttpClientFilter path. Default value "/**" |
| Property | Type | Description |
|---|---|---|
|
boolean |
Set whether to enable bearer token authentication. Default value true. |
|
java.lang.String |
Sets the prefix to use for the auth token. Default value Bearer. |
|
java.lang.String |
Sets the header name to use. Default value Authorization. |
|
java.lang.String |
| Property | Type | Description |
|---|---|---|
|
boolean |
Enables {@link SecurityFilter}. Default value true |
|
boolean |
Enables bypassing authentication resolution for anonymous static resources. Default value false. |
|
java.lang.String |
The pattern the {@link SecurityFilter} should match. |
|
java.lang.String |
Pattern the {@link SecurityFilter} should match. Default value |
| Property | Type | Description |
|---|---|---|
|
java.lang.Integer |
Access token expiration. Default value (3600). |
| Property | Type | Description |
|---|---|---|
|
java.util.Set |
Supported content types for POST endpoints. Default Value application/json and application/x-www-form-urlencoded |
|
int |
Status code for unsupported content type. Default to 404 |
|
boolean |
Enables LogoutController. Default value true. |
|
java.lang.String |
Path to the LogoutController. Default value "/logout". |
|
boolean |
Enables HTTP GET invocations of LogoutController. Default value (false). |
| Property | Type | Description |
|---|---|---|
|
java.util.Set |
Supported content types for POST endpoints. Default Value application/json and application/x-www-form-urlencoded |
|
int |
Status code for unsupported content type. Default to 404 |
|
boolean |
Sets whether the {@link OauthController} is enabled. Default value (true). |
|
java.lang.String |
Sets the path to map the {@link OauthController} to. Default value ("/oauth/access_token"). |
|
boolean |
Enables HTTP GET invocations of refresh token requests. Only applies to requests sending a cookie (JWT_REFRESH_TOKEN). Default value (true). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Enables IntrospectionController. Default value true |
|
java.lang.String |
Path to the IntrospectionController. Default value "/token_info" |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Set the Subject DN regex. Default value "CN=(.*?)(?:, |
$)". |
|
boolean |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the cookie is a session cookie. A session cookie does not have an expiration date. |
|
java.lang.String |
Sets the domain name of this Cookie. |
|
java.lang.Boolean |
Whether the Cookie can only be accessed via HTTP. Default value ({@value #DEFAULT_HTTPONLY}). |
|
java.lang.Boolean |
Sets whether the cookie is secured. Defaults to the secure status of the request. |
|
java.time.Duration |
Sets the maximum age of the cookie. |
|
Sets the same-site setting of the cookie. Default value null. Value is case sensitive. Allowed values: |
|
|
boolean |
Sets whether JWT cookie configuration is enabled. Default value (true). |
|
java.lang.String |
Cookie Name. Default value ("JWT"). |
|
java.lang.String |
Sets the path of the cookie. Default value ("/"). |
| Property | Type | Description |
|---|---|---|
|
java.util.Set |
Supported content types for POST endpoints. Default Value application/json and application/x-www-form-urlencoded |
|
int |
Status code for unsupported content type. Default to 404 |
|
boolean |
Enables the controller. |
|
java.lang.String |
Path to the controller. |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Where the user is redirected to after trying to access a secured route. Default value ("/"). |
|
boolean |
Whether it should redirect on unauthorized rejections. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Where the user is redirected to after trying to access a secured route which he is forbidden to access. Default value ("/"). |
|
boolean |
Whether it should redirect on forbidden rejections. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Enable HttpHeaderTokenPropagator. Default value (true). |
|
java.lang.String |
Value prefix for Http Header. Default value ("Bearer"). |
|
java.lang.String |
Http Header to be used to propagate the token. Default value ("Authorization") |
|
java.lang.String |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Where the user is redirected to after trying to access a secured route which he is forbidden to access. Default value ("/"). |
|
boolean |
Whether it should redirect on forbidden rejections. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether the configuration is enabled. Default value true. |
|
java.lang.String |
Authentication attributes map key for the user’s roles. Default value "roles". |
|
java.lang.String |
Authentication attributes map key for the user’s name. Default value "sub". |
|
java.lang.String |
If the entry used for the roles in the Authentication attributes map is a String, you can use the separator to split its value into multiple roles. Default value DEFAULT_ROLES_SEPARATOR. |
| Property | Type | Description |
|---|---|---|
|
Defines which authentication to use. Defaults to null. Possible values bearer, session, cookie, idtoken. Should only be supplied if the service handles login and logout requests. |
|
|
boolean |
If Security is enabled. Default value true |
|
java.util.List |
Map that defines the interception patterns. |
|
java.util.List |
Allowed IP patterns. Default value (["0.0.0.0"]). A pattern made only of hexadecimal digits, dots, colons and {@code } (e.g. {@code 192.168.1.}) is an IP wildcard whose dots and colons match literally; any other pattern is a regular expression matched against the whole host address. |
|
boolean |
Whether the intercept URL patterns should be prepended with context path if defined. Defaults to true. |
|
Determines how authentication providers should be processed. Default value ANY. Possible values: ANY or ALL. |
|
|
boolean |
Whether the server should respond with 401 for requests that do not match any routes on the server, if you set it to false, it will return 404 for requests that do not match any routes on the server. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Enables the {@link BasicAuthAuthenticationFetcher}. Default value true. |
Micronaut Security Csrf Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the cookie is a session cookie. A session cookie does not have an expiration date. |
|
java.lang.String |
The Secret Key that is used to calculate an HMAC as part of a CSRF token generation. Default Value |
|
java.lang.String |
Key to look for the CSRF token in an HTTP Session. Default Value: "csrfToken". |
|
int |
Random value’s size in bytes. The random value used is used to build a CSRF Token. Default Value: 16. |
|
java.lang.String |
HTTP Header name to look for the CSRF token. Default Value: "X-CSRF-TOKEN". |
|
java.lang.String |
Field name in a form url encoded submission to look for the CSRF token. Default Value: "csrfToken". |
|
boolean |
Whether the CSRF integration is enabled. Default value true. |
|
java.lang.String |
Sets the domain name of this Cookie. Default value (null). |
|
java.lang.Boolean |
Sets whether the cookie is secured. Defaults to the secure status of the request. |
|
java.lang.String |
Cookie Name. |
|
java.lang.String |
Sets the path of the cookie. Default value ("/"). |
|
java.lang.Boolean |
Whether the Cookie can only be accessed via HTTP. Default value (true). |
|
java.time.Duration |
Sets the maximum age of the cookie. Default value ({@value AccessTokenConfigurationProperties#DEFAULT_EXPIRATION} seconds). |
|
Cookie Same Site Configuration. It defaults to Strict. |
|
|
| Property | Type | Description |
|---|---|---|
|
java.util.Set |
Filter will only process requests whose method matches any of these methods. Default Value is POST, PUT, DELETE, PATCH. |
|
java.util.Set |
Filter will only process requests whose content type matches any of these content types. Default Value is application/x-www-form-urlencoded, multipart/form-data. |
|
boolean |
Whether the filter is enabled. Default value true. |
|
java.lang.String |
CSRF filter processes only request paths matching this regular expression. Default Value: "^.*$" |
Micronaut Security Html Sanitizer Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether the OWASP-backed HTML sanitizer is enabled. |
|
java.util.List |
Sets the OWASP sanitizer policies to combine. By default {@code BLOCKS, FORMATTING and LINKS}. |
Micronaut Security Jwt Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Whether the iss claim should be validated to ensure it matches this value. It defaults to null, thus it is not validated. |
|
java.lang.String |
Whether the aud claim should be validated to ensure it matches this value. It defaults to null, thus it is not validated. |
|
boolean |
Whether the JWT subject claim should be validated to ensure it is not null. Default value true. |
|
boolean |
Whether it should be validated that validation time is not before the not-before claim (nbf) of a JWT token. |
|
boolean |
Whether the expiration date of the JWT should be validated. Default value true. |
|
boolean |
Whether the nonce claim should be validated when a nonce was present. Default value true. |
|
boolean |
Whether |
| Property | Type | Description |
|---|---|---|
|
java.lang.Integer |
JWKS cache expiration. Default value 60 seconds. |
|
java.lang.String |
Remote JSON Web Key set url. e.g. https://…/.well-known/jwks.json |
|
com.nimbusds.jose.jwk.KeyType |
Representation of the kty parameter in a JSON Web Key (JWK). When set, only keys of this type are used to verify token signatures; a token signed with a key of another type is rejected even if that key is part of the JWKS. Default value (null): keys of any type are matched. |
|
java.lang.String |
Issuer the JSON Web Key Set is bound to. When set, only tokens whose {@code iss} claim matches this issuer are verified with this key set. Default value (null): tokens are verified regardless of their {@code iss} claim. |
| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether JWT security is enabled. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Enables KeysController. Default value true. |
|
java.lang.String |
Path to the KeysController. Default value "/keys". |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
A path either starting with |
| Property | Type | Description |
|---|---|---|
|
java.time.Duration |
How long a remote JWK Set is not requested again after a retrieval failed (for example, connection refused, non-2xx response or unparseable body) or returned no keys. While the back-off lasts, tokens which cannot be verified with another signature configuration are rejected without contacting the JWKS endpoint again. Set it to 0 to disable the back-off. Default value (10 seconds). |
|
java.time.Duration |
How long a remote JWK Set retrieval may take before it is given up and treated as a failure, which starts the failure back-off. Concurrent callers share one retrieval per signature configuration and url, so without this timeout a retrieval which never completes (for example a JWKS client without timeouts of its own) would block every token for that configuration. Set it to 0 to disable the timeout. Default value (30 seconds). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Secret used for encryption configuration. |
|
com.nimbusds.jose.JWEAlgorithm |
{@link com.nimbusds.jose.JWEAlgorithm}. |
|
com.nimbusds.jose.EncryptionMethod |
{@link com.nimbusds.jose.EncryptionMethod}. |
|
boolean |
Indicates whether the supplied secret is base64 encoded. Default value false. |
| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether SignedRefreshTokenGenerator is enabled. Default value (true). |
|
com.nimbusds.jose.JWSAlgorithm |
{@link com.nimbusds.jose.JWSAlgorithm}. Defaults to HS256 |
|
java.lang.String |
shared secret. For HS256 must be at least 256 bits. |
|
boolean |
Indicates whether the supplied secret is base64 encoded. Default value false. |
| Property | Type | Description |
|---|---|---|
|
com.nimbusds.jose.JWSAlgorithm |
{@link com.nimbusds.jose.JWSAlgorithm}. Defaults to HS256 |
|
java.lang.String |
Secret used to sign JWT. Length must be at least 256 bits. |
|
boolean |
Indicates whether the supplied secret is base64 encoded. Default value false. |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the bean {@link NimbusReactiveJsonWebTokenValidator} is enabled. Default value true. |
|
boolean |
Whether the bean {@link NimbusJsonWebTokenValidator} is enabled. Default value true. |
|
boolean |
Whether {@link NimbusReactiveJsonWebTokenValidator} should subscribe on a scheduler created with the blocking task executor. Default value false. |
Micronaut Security Ldap Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Sets the DN bound, with the supplied password, when a username matches no directory entry, so that an unknown username costs the application the same bind round trip as a wrong password. Defaults to a random non-existent entry under the search base, which equalises only the client-side cost. Point it at a real account with an unmatchable password, excluded from any lockout policy, to also equalise directory-side work (password hashing, bad-password counters). |
|
boolean |
Sets if the subtree should be searched. Default true |
|
java.lang.String |
Sets the base DN to search. |
|
java.lang.String |
Sets the search filter. Default "(uid={0})" |
|
java.lang.String |
Sets the attributes to return. Default all |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Sets the server URL. |
|
java.lang.String |
Sets the manager DN. |
|
java.lang.String |
Sets the manager password. |
|
java.lang.String |
Sets the context factory class. Default "com.sun.jndi.ldap.LdapCtxFactory" |
|
java.util.Map |
Any additional properties that should be passed to {@link javax.naming.directory.InitialDirContext#InitialDirContext(java.util.Hashtable)}. Keys are bound verbatim and flat, so a key such as {@code java.naming.security.protocol} is passed to JNDI as a single property name instead of being split into nested maps. |
| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether the manager context uses the JNDI LDAP connection pool ({@code com.sun.jndi.ldap.connect.pool}). The pool is shared by the whole JVM and, unless bounded, the JDK neither limits its size nor closes idle connections, so a burst of authentication attempts can leave the directory without free connections for user binds. When pooling is enabled, the pool is bounded with {@link #getPool()}, whose values are applied as the {@code com.sun.jndi.ldap.connect.pool.maxsize}, {@code com.sun.jndi.ldap.connect.pool.prefsize} and {@code com.sun.jndi.ldap.connect.pool.timeout} system properties before the first pooled connection is opened. Contexts bound with user credentials are never pooled. This is the only supported pooling switch: a {@code com.sun.jndi.ldap.connect.pool} entry in the additional context properties is ignored. Default false. |
|
java.lang.Integer |
Sets the maximum number of connections the pool keeps per connection identity (server, manager DN and password). Once reached, a login waits for a pooled connection to be released instead of opening a new one. {@code 0} removes the bound, which lets a burst of login attempts exhaust the connections of the directory; a negative value is rejected. Default 20, unless the {@code com.sun.jndi.ldap.connect.pool.maxsize} system property is already set. |
|
java.lang.Integer |
Sets the preferred number of connections the pool keeps per connection identity. Connections released above this number are closed rather than returned to the pool. A negative value is rejected. Default 5, unless the {@code com.sun.jndi.ldap.connect.pool.prefsize} system property is already set. |
|
java.time.Duration |
Sets the time after which an idle pooled connection is closed. {@code 0} keeps idle connections open forever; a negative value is rejected. Default 5 minutes, unless the {@code com.sun.jndi.ldap.connect.pool.timeout} system property is already set. |
|
java.time.Duration |
Sets the time a login waits for a pooled connection to be released when the pool already holds {@code max-size} connections, and the time allowed to open a new pooled connection. Without it, the JDK waits indefinitely, so a hung directory operation holding every pooled connection would block every later login. Applied as the {@code com.sun.jndi.ldap.connect.timeout} JNDI environment property of the pooled manager context, unless {@link ContextConfiguration#getProperties()} already sets that key. The JDK waits indefinitely for a value of {@code 0} or less, so such a value is rejected. Default 10 seconds. |
| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether this configuration is enabled. Default true. |
| Property | Type | Description |
|---|---|---|
|
boolean |
Sets if the subtree should be searched. Default true |
|
java.lang.String |
Sets the base DN to search from. |
|
java.lang.String |
Sets the group search filter. Default "uniquemember={0}" |
|
java.lang.String |
Sets the group attribute name. Default "cn" |
|
boolean |
Sets if group search is enabled. Default false |
|
java.lang.String |
Sets the name of the user attribute to bind to the group search filter. Defaults to the user’s DN. |
Micronaut Security Oauth2 Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
boolean |
Whether /.well-known/oauth-protected-resource is exposed. Default value: true. |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the OpenID configuration should be fetched from the discovery endpoint derived from {@link #getIssuer()} and {@link #getConfigurationPath()}. Default value: true. |
|
boolean |
Whether the protected resource metadata endpoint should expose the OpenID issuer as an authorization server. Default value: true. |
|
java.net.URL |
URL using the https scheme with no query or fragment component that the Open ID provider asserts as its issuer identifier. |
|
java.lang.String |
The value expected in the {@code iss} claim of ID tokens. Set it when it differs from the {@code issuer} used to fetch the discovery document, for example when discovery is fetched over an internal URL. Defaults to {@code issuer}. |
|
java.lang.String |
The configuration path to discover openid configuration. Default ("/.well-known/openid-configuration"). |
|
java.lang.String |
The JWKS signature URI. |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
|
Determines the authorization processing flow to be used. Default value (code). |
|
|
java.lang.String |
Mechanism to be used for returning authorization response parameters from the authorization endpoint. |
|
Controls how the authentication interface is displayed. |
|
|
Controls how the authentication server prompts the user. |
|
|
java.lang.Integer |
Maximum authentication age. |
|
java.util.List |
Preferred locales for authentication. |
|
java.util.List |
Authentication class reference values. |
|
java.lang.String |
Code Challenge Method to use for PKCE. |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The URI the OpenID provider should redirect to after logging out. Default value ("/logout"). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Sets the mechanism to persist the nonce for later retrieval for validation. Supported values ("session", "cookie"). Default value ("cookie"). |
|
boolean |
Sets whether a nonce parameter will be sent. Default (true). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
|
java.lang.String |
Authentication Method |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
|
java.lang.String |
Authentication Method |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
Sets the mechanism to persist the state for later retrieval for validation. Supported values ("session", "cookie"). Default value ("cookie"). |
|
boolean |
Sets whether a state parameter will be sent. Default (true). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
|
java.lang.String |
Authentication Method |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
|
|
java.lang.String |
|
|
java.util.regex.Pattern |
|
|
java.util.regex.Pattern |
|
|
java.time.Duration |
Number of seconds for a token obtained via client credentials grant to be considered expired prior to its expiration date. Default value (30 seconds). |
|
java.lang.String |
Scope to be requested in the client credentials request. Defaults to none. |
|
boolean |
Enables ClientCredentialsClient. Default value true |
|
java.util.Map |
Additional parameters included in the client-credentials flow. |
|
java.util.Map |
| Property | Type | Description |
|---|---|---|
|
boolean |
Set to true if the original JWT from the provider should be included in the Micronaut JWT. Default value (false). |
|
boolean |
Set to true if the original access token from the provider should be included in the Micronaut JWT. Default value (false). |
|
boolean |
Set to true if the original refresh token from the provider should be included in the Micronaut JWT. Default value (false). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
|
java.lang.Boolean |
Whether bearer tokens which cannot be attributed to this provider (opaque tokens, or JWTs without an |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The URI used to log out of an OpenID provider. Default value ("/oauth/logout"). |
|
java.lang.Boolean |
Whether the username of an authentication built from an OpenID provider response, by the default OpenID authentication mapper at login or by the |
| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether the OAuth 2.0 support is enabled. Default value (true). |
|
java.lang.String |
The URI template that is used to initiate an OAuth 2.0 authorization code grant flow. Default value ("/oauth/login{/provider}"). |
|
java.lang.String |
The URI template that OAuth 2.0 providers can use to submit an authorization callback request. Default value ("/oauth/callback{/provider}"). |
|
java.lang.String |
The default authentication provider for an OAuth 2.0 authorization code grant flow. |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
|
java.lang.String |
Authentication Method |
|
The content type of token endpoint requests. Default value (application/x-www-form-urlencoded). |
| Property | Type | Description |
|---|---|---|
|
int |
entropy (in bytes) used for the code verifier generation. Default value 64. |
|
java.lang.String |
Sets the mechanism to persist the state for later retrieval for validation. Supported values ("session", "cookie"). Default value (PERSISTENCE_COOKIE). |
|
boolean |
Sets whether a state parameter will be sent. Default (true). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the cookie is a session cookie. A session cookie does not have an expiration date. |
|
java.lang.String |
Sets the domain name of this Cookie. Default value (null). |
|
java.lang.Boolean |
Sets whether the cookie is secured. Defaults to the secure status of the request. |
|
java.lang.String |
Cookie Name. Default value |
|
java.lang.String |
Sets the path of the cookie. Default value ("/"). |
|
java.lang.Boolean |
Whether the Cookie can only be accessed via HTTP. Default value (true). |
|
java.time.Duration |
Sets the maximum age of the cookie. Default value (5 minutes). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether IssuerClaimValidator is enabled. Default value (true). |
|
boolean |
Whether AudienceClaimValidator is enabled. Default value (true). |
|
boolean |
Whether AuthorizedPartyClaimValidator is enabled. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the cookie is a session cookie. A session cookie does not have an expiration date. |
|
java.lang.String |
Sets the domain name of this Cookie. Default value (null). |
|
java.lang.Boolean |
Sets whether the cookie is secured. Defaults to the secure status of the request. |
|
java.lang.String |
Cookie Name. Default value |
|
java.lang.String |
Sets the path of the cookie. Default value ("/"). |
|
java.lang.Boolean |
Whether the Cookie can only be accessed via HTTP. Default value (true). |
|
java.time.Duration |
Sets the maximum age of the cookie. Default value (5 minutes). |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether a request to /.well-known/oauth-authorization-server should be proxied to the authorization server. Default to false. |
|
boolean |
Whether a request to /.well-known/openid-configuration should be proxied to the authorization server. Default to false. |
|
java.lang.String |
OAuth 2.0 client id. |
|
java.lang.String |
OAuth 2.0 client secret. |
|
boolean |
Sets whether the client is enabled. Default value (true). |
|
java.util.List |
Requested scopes. If not specified for OAuth 2.0 clients using OpenID Connect it defaults to |
|
OAuth 2.0 grant type. Default value (authorization_code). |
|
|
java.util.List |
| Property | Type | Description |
|---|---|---|
|
boolean |
Enable {@link ClientCredentialsHeaderTokenPropagatorConfiguration}. Default value (true). |
|
java.lang.String |
Value prefix for Http Header. Default value ({@value #DEFAULT_PREFIX}). |
|
java.lang.String |
Http Header to be used to propagate the token. Default value ({@value #DEFAULT_HEADER_NAME}) |
| Property | Type | Description |
|---|---|---|
|
boolean |
Whether the cookie is a session cookie. A session cookie does not have an expiration date. |
|
java.lang.String |
Sets the domain name of this Cookie. Default value (null). |
|
java.lang.Boolean |
Sets whether the cookie is secured. Defaults to the secure status of the request. |
|
java.lang.String |
Cookie Name. Default value |
|
java.lang.String |
Sets the path of the cookie. Default value ("/"). |
|
java.lang.Boolean |
Whether the Cookie can only be accessed via HTTP. Default value (true). |
|
java.time.Duration |
Sets the maximum age of the cookie. Default value (5 minutes). |
| Property | Type | Description |
|---|---|---|
|
java.lang.String |
The endpoint URL |
|
boolean |
The end session enabled flag. Default value (true). |
| Property | Type | Description |
|---|---|---|
|
Micronaut attempts to infer the authorization server used by the client based on the issuer. However, if you are using a custom domain, it may be impossible to infer it. You can set it explicitly via this property. |
|
|
java.lang.String |
The endpoint URL |
|
java.lang.String |
Code Challenge Method to use for PKCE. |
Micronaut Security Password Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
int |
Sets the memory cost, in kibibytes, used to encode passwords. It must be at least eight times the parallelism and at most the maximum memory. Default value (19456). |
|
int |
Sets the number of iterations used to encode passwords. It must be at least 1 and at most the maximum iterations. Default value (2). |
|
int |
Sets the degree of parallelism used to encode passwords. It must be between 1 and 255. Default value (1). |
|
int |
Sets the length, in bytes, of the salt generated for each encoded password. It must be between 8 and 48. Default value (16). |
|
int |
Sets the length, in bytes, of the hash generated for each encoded password. It must be between 12 and 64. Default value (32). |
|
int |
Sets the highest memory cost, in kibibytes, accepted when verifying an encoded password. An encoded password that declares a higher memory cost does not match any password. Default value (262144). |
|
int |
Sets the highest number of iterations accepted when verifying an encoded password. An encoded password that declares more iterations does not match any password. Default value (10). |
Micronaut Security Reporting Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
boolean |
Enables or disables the reporting response filter. |
|
java.lang.String |
Sets the request path pattern matched by the reporting response filter. <p>Responses for URLs outside this pattern do not receive the module’s {@code Reporting-Endpoints} header.</p> |
| Property | Type | Description |
|---|---|---|
|
java.net.URI |
Sets the absolute or relative reporting endpoint URI. |
Micronaut Security Session Config Properties
🔗| Property | Type | Description |
|---|---|---|
|
boolean |
Sets whether the session config is enabled. Default value (true). |