@ConfigurationProperties(value="unauthorized") public static class RedirectConfigurationProperties.UnauthorizedRedirectConfigurationProperties extends java.lang.Object implements UnauthorizedRedirectConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enabled value for unauthorized.
|
static java.lang.String |
DEFAULT_UNAUTHORIZED
The default unauthorized rejection target URL.
|
Constructor and Description |
---|
UnauthorizedRedirectConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUrl() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Whether it should redirect on unauthorized rejections.
|
void |
setUrl(java.lang.String url)
Where the user is redirected to after trying to access a secured route.
|
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_UNAUTHORIZED
public UnauthorizedRedirectConfigurationProperties()
@NonNull public java.lang.String getUrl()
getUrl
in interface UnauthorizedRedirectConfiguration
public void setUrl(@NonNull java.lang.String url)
url
- The URLpublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- The enabled flag