Package io.micronaut.security.config
Class RedirectConfigurationProperties.RefreshRedirectConfigurationProperties
java.lang.Object
io.micronaut.security.config.RedirectConfigurationProperties.RefreshRedirectConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,RefreshRedirectConfiguration
- Enclosing class:
- RedirectConfigurationProperties
@ConfigurationProperties("refresh")
public static class RedirectConfigurationProperties.RefreshRedirectConfigurationProperties
extends Object
implements RefreshRedirectConfiguration
Forbidden redirect configuration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enabled value for forbidden.static final String
The default forbidden rejection target URL. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
getUrl()
boolean
void
setEnabled
(boolean enabled) Whether it should redirect on forbidden rejections.void
Where the user is redirected to after trying to access a secured route which he is forbidden to access.
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enabled value for forbidden.- See Also:
-
DEFAULT_REFRESH_URL
The default forbidden rejection target URL.- See Also:
-
-
Constructor Details
-
RefreshRedirectConfigurationProperties
public RefreshRedirectConfigurationProperties()
-
-
Method Details
-
getUrl
- Specified by:
getUrl
in interfaceRefreshRedirectConfiguration
-
setUrl
Where the user is redirected to after trying to access a secured route which he is forbidden to access. 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 forbidden rejections. Default value (true).- Parameters:
enabled
- The enabled flag
-