Package io.micronaut.security.config
Class RedirectConfigurationProperties.UnauthorizedRedirectConfigurationProperties
java.lang.Object
io.micronaut.security.config.RedirectConfigurationProperties.UnauthorizedRedirectConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,UnauthorizedRedirectConfiguration
- Enclosing class:
- RedirectConfigurationProperties
@ConfigurationProperties("unauthorized")
public static class RedirectConfigurationProperties.UnauthorizedRedirectConfigurationProperties
extends Object
implements UnauthorizedRedirectConfiguration
Unauthorized redirect configuration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enabled value for unauthorized.static final String
The default unauthorized rejection target URL. -
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enabled value for unauthorized.- See Also:
-
DEFAULT_UNAUTHORIZED
The default unauthorized rejection target URL.- See Also:
-
-
Constructor Details
-
UnauthorizedRedirectConfigurationProperties
public UnauthorizedRedirectConfigurationProperties()
-
-
Method Details
-
getUrl
- Specified by:
getUrl
in interfaceUnauthorizedRedirectConfiguration
-
setUrl
Where the user is redirected to after trying to access a secured route. Default value ("/").- Parameters:
url
- The URL
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Whether it should redirect on unauthorized rejections. Default value (true).- Parameters:
enabled
- The enabled flag
-