Class OauthControllerConfigurationProperties
java.lang.Object
io.micronaut.security.token.jwt.endpoints.OauthControllerConfigurationProperties
- All Implemented Interfaces:
 io.micronaut.core.util.Toggleable,ControllerConfiguration,OauthControllerConfiguration
@Requires(property="micronaut.security.endpoints.oauth.enabled",
          notEquals="false",
          defaultValue="true")
@ConfigurationProperties("micronaut.security.endpoints.oauth")
public class OauthControllerConfigurationProperties
extends Object
implements OauthControllerConfiguration
Configures the provided 
OauthController.- Since:
 - 1.0
 - Author:
 - Sergio del Amo
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetPath()booleanbooleanvoidsetEnabled(boolean enabled) Sets whether theOauthControlleris enabled.voidsetGetAllowed(boolean getAllowed) Enables HTTP GET invocations of refresh token requests.voidSets the path to map theOauthControllerto. 
- 
Field Details
- 
PREFIX
- See Also:
 
 - 
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
 
 - 
DEFAULT_PATH
The default path.- See Also:
 
 - 
DEFAULT_GETALLOWED
public static final boolean DEFAULT_GETALLOWEDDefault Get Allowed.- See Also:
 
 
 - 
 - 
Constructor Details
- 
OauthControllerConfigurationProperties
public OauthControllerConfigurationProperties() 
 - 
 - 
Method Details
- 
isEnabled
public boolean isEnabled()- Specified by:
 isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
 - true if you want to enable the 
OauthController 
 - 
getPath
- Specified by:
 getPathin interfaceControllerConfiguration- Returns:
 - the path where the controller is enabled.
 
 - 
setEnabled
public void setEnabled(boolean enabled) Sets whether theOauthControlleris enabled. Default value (true).- Parameters:
 enabled- True if is enabled
 - 
setPath
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.
 
 -