@ConfigurationProperties(value="micronaut.security.endpoints.authcode") public class AuthorizationCodeControllerConfigurationProperties extends java.lang.Object implements AuthorizationCodeControllerConfiguration
ConfigurationProperties
implementation of AuthorizationCodeControllerConfiguration
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CALLBACK
The default callback path.
|
static java.lang.String |
DEFAULT_CONTROLLERPATH
The default path.
|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_LOGIN
The default login path.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
AuthorizationCodeControllerConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCallbackPath()
The path to respond to callbacks.
|
java.lang.String |
getControllerPath()
The base path the authorization controller responds to.
|
java.lang.String |
getLoginPath()
The path to listen for login requests.
|
boolean |
isEnabled() |
void |
setCallbackPath(java.lang.String callbackPath)
Sets the path used by OAuth providers to callback the application.
|
void |
setControllerPath(java.lang.String controllerPath)
The authorization controller path.
|
void |
setEnabled(boolean enabled)
Sets whether the
AuthorizationCodeController is enabled. |
void |
setLoginPath(java.lang.String loginPath)
Sets the path used to trigger a redirect to login with OAuth.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_CONTROLLERPATH
public static final java.lang.String DEFAULT_CALLBACK
public static final java.lang.String DEFAULT_LOGIN
public AuthorizationCodeControllerConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
AuthorizationCodeController
public void setEnabled(boolean enabled)
AuthorizationCodeController
is enabled. Default value (true).enabled
- True if is enabled@Nonnull public java.lang.String getControllerPath()
AuthorizationCodeControllerConfiguration
getControllerPath
in interface AuthorizationCodeControllerConfiguration
@Nonnull public java.lang.String getCallbackPath()
AuthorizationCodeControllerConfiguration
getCallbackPath
in interface AuthorizationCodeControllerConfiguration
@Nonnull public java.lang.String getLoginPath()
AuthorizationCodeControllerConfiguration
getLoginPath
in interface AuthorizationCodeControllerConfiguration
public void setControllerPath(@Nonnull java.lang.String controllerPath)
controllerPath
- Controller's pathpublic void setCallbackPath(@Nonnull java.lang.String callbackPath)
callbackPath
- Controller callback path.public void setLoginPath(@Nonnull java.lang.String loginPath)
loginPath
- Controller login path.