@Requires(property="micronaut.security.endpoints.oauth.enabled",
notEquals="false",
defaultValue="true")
@ConfigurationProperties(value="micronaut.security.endpoints.oauth")
public class OauthControllerConfigurationProperties
extends java.lang.Object
implements OauthControllerConfiguration
OauthController.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_GETALLOWED
Default Get Allowed.
|
static java.lang.String |
DEFAULT_PATH
The default path.
|
static java.lang.String |
PREFIX |
| Constructor and Description |
|---|
OauthControllerConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPath() |
boolean |
isEnabled() |
boolean |
isGetAllowed() |
void |
setEnabled(boolean enabled)
Sets whether the
OauthController is enabled. |
void |
setGetAllowed(boolean getAllowed)
Enables HTTP GET invocations of refresh token requests.
|
void |
setPath(java.lang.String path)
Sets the path to map the
OauthController to. |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_PATH
public static final boolean DEFAULT_GETALLOWED
public OauthControllerConfigurationProperties()
public boolean isEnabled()
isEnabled in interface io.micronaut.core.util.ToggleableOauthController@NonNull public java.lang.String getPath()
getPath in interface ControllerConfigurationpublic void setEnabled(boolean enabled)
OauthController is enabled. Default value (true).enabled - True if is enabledpublic void setPath(java.lang.String path)
OauthController to. Default value ("/oauth/access_token").path - The pathpublic boolean isGetAllowed()
isGetAllowed in interface OauthControllerConfigurationpublic void setGetAllowed(boolean getAllowed)
getAllowed - Whether Http GET should be supported.