@Requires(property="micronaut.security.oauth2.enabled", value="true", defaultValue="true") @ConfigurationProperties(value="micronaut.security.oauth2") public class OauthConfigurationProperties extends java.lang.Object implements OauthConfiguration
ConfigurationProperties
implementation of OauthClientConfiguration
.Modifier and Type | Class and Description |
---|---|
static class |
OauthConfigurationProperties.OpenIdConfigurationProperties
OpenID configuration
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
OauthConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCallbackUri() |
java.util.Optional<java.lang.String> |
getDefaultProvider() |
java.lang.String |
getLoginUri() |
OpenIdConfiguration |
getOpenid() |
boolean |
isEnabled() |
void |
setCallbackUri(java.lang.String callbackUri)
The URI template that OAuth 2.0 providers can use to
submit an authorization callback request.
|
void |
setDefaultProvider(java.lang.String defaultProvider)
The default authentication provider for an OAuth 2.0 authorization code grant flow.
|
void |
setEnabled(boolean enabled)
Sets whether the OAuth 2.0 support is enabled.
|
void |
setLoginUri(java.lang.String loginUri)
The URI template that is used to initiate an OAuth 2.0
authorization code grant flow.
|
void |
setOpenid(OauthConfigurationProperties.OpenIdConfigurationProperties openid)
The OpenID configuration
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- True if is enabled@Nonnull public java.lang.String getLoginUri()
getLoginUri
in interface OauthConfiguration
public void setLoginUri(@Nonnull java.lang.String loginUri)
loginUri
- The Login uri@Nonnull public java.lang.String getCallbackUri()
getCallbackUri
in interface OauthConfiguration
public void setDefaultProvider(java.lang.String defaultProvider)
defaultProvider
- The default authentication provider@Nullable public java.util.Optional<java.lang.String> getDefaultProvider()
getDefaultProvider
in interface OauthConfiguration
public void setCallbackUri(@Nonnull java.lang.String callbackUri)
callbackUri
- The callback Uri@Nonnull public OpenIdConfiguration getOpenid()
getOpenid
in interface OauthConfiguration
public void setOpenid(@Nonnull OauthConfigurationProperties.OpenIdConfigurationProperties openid)
openid
- The OpenID configuration