Class OauthControllerConfigurationProperties
- java.lang.Object
-
- io.micronaut.security.token.jwt.endpoints.OauthControllerConfigurationProperties
-
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable,io.micronaut.security.endpoints.ControllerConfiguration,OauthControllerConfiguration
@Requires(property="micronaut.security.endpoints.oauth.enabled", notEquals="false", defaultValue="true") @ConfigurationProperties("micronaut.security.endpoints.oauth") public class OauthControllerConfigurationProperties extends java.lang.Object implements OauthControllerConfigurationConfigures the providedOauthController.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ENABLEDThe default enable value.static booleanDEFAULT_GETALLOWEDDefault Get Allowed.static java.lang.StringDEFAULT_PATHThe default path.static java.lang.StringPREFIX
-
Constructor Summary
Constructors Constructor Description OauthControllerConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPath()booleanisEnabled()booleanisGetAllowed()voidsetEnabled(boolean enabled)Sets whether theOauthControlleris enabled.voidsetGetAllowed(boolean getAllowed)Enables HTTP GET invocations of refresh token requests.voidsetPath(java.lang.String path)Sets the path to map theOauthControllerto.
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED
The default enable value.- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
The default path.- See Also:
- Constant Field Values
-
DEFAULT_GETALLOWED
public static final boolean DEFAULT_GETALLOWED
Default Get Allowed.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
- true if you want to enable the
OauthController
-
getPath
@NonNull public java.lang.String getPath()
- Specified by:
getPathin interfaceio.micronaut.security.endpoints.ControllerConfiguration
-
setEnabled
public void setEnabled(boolean enabled)
Sets whether theOauthControlleris enabled. Default value (true).- Parameters:
enabled- True if is enabled
-
setPath
public void setPath(java.lang.String path)
Sets the path to map theOauthControllerto. Default value ("/oauth/access_token").- Parameters:
path- The path
-
isGetAllowed
public boolean isGetAllowed()
- Specified by:
isGetAllowedin interfaceOauthControllerConfiguration- Returns:
- True if refresh requests can be GET
-
setGetAllowed
public void setGetAllowed(boolean getAllowed)
Enables HTTP GET invocations of refresh token requests. Only applies to requests sending a cookie (JWT_REFRESH_TOKEN). Default value (true).- Parameters:
getAllowed- Whether Http GET should be supported.
-
-