@ConfigurationProperties(value="micronaut.security.redirect") public class RedirectConfigurationProperties extends java.lang.Object implements RedirectConfiguration
ConfigurationProperties
implementation of RedirectConfiguration
.Modifier and Type | Class and Description |
---|---|
static class |
RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties
Forbidden redirect configuration.
|
static class |
RedirectConfigurationProperties.RefreshRedirectConfigurationProperties
Forbidden redirect configuration.
|
static class |
RedirectConfigurationProperties.UnauthorizedRedirectConfigurationProperties
Unauthorized redirect configuration.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LOGIN_FAILURE
The default login failure target URL.
|
static java.lang.String |
DEFAULT_LOGIN_SUCCESS
The default login success target URL.
|
static java.lang.String |
DEFAULT_LOGOUT_URL
The default logout URL.
|
static boolean |
DEFAULT_PRIOR_TO_LOGIN
The default behavior of redirect to the uri prior to login.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
RedirectConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
ForbiddenRedirectConfiguration |
getForbidden() |
java.lang.String |
getLoginFailure() |
java.lang.String |
getLoginSuccess() |
java.lang.String |
getLogout() |
RefreshRedirectConfiguration |
getRefresh() |
UnauthorizedRedirectConfiguration |
getUnauthorized() |
boolean |
isPriorToLogin() |
void |
setForbidden(RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties forbidden)
Sets the forbidden redirect configuration.
|
void |
setLoginFailure(java.lang.String loginFailure)
Where the user is redirected to after a failed login.
|
void |
setLoginSuccess(java.lang.String loginSuccess)
Where the user is redirected to after a successful login.
|
void |
setLogout(java.lang.String logout)
URL where the user is redirected after logout.
|
void |
setPriorToLogin(boolean priorToLogin)
If true, the user should be redirected back to the unauthorized
request that initiated the login flow.
|
void |
setRefresh(RedirectConfigurationProperties.RefreshRedirectConfigurationProperties refresh)
Sets the refresh redirect configuration.
|
void |
setUnauthorized(RedirectConfigurationProperties.UnauthorizedRedirectConfigurationProperties unauthorized)
Sets the unauthorized redirect configuration.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_LOGOUT_URL
public static final java.lang.String DEFAULT_LOGIN_SUCCESS
public static final java.lang.String DEFAULT_LOGIN_FAILURE
public static final boolean DEFAULT_PRIOR_TO_LOGIN
@NonNull public java.lang.String getLoginSuccess()
getLoginSuccess
in interface RedirectConfiguration
@NonNull public java.lang.String getLoginFailure()
getLoginFailure
in interface RedirectConfiguration
public void setLoginSuccess(@NonNull java.lang.String loginSuccess)
loginSuccess
- The URLpublic void setLoginFailure(@NonNull java.lang.String loginFailure)
loginFailure
- The URL@NonNull public java.lang.String getLogout()
getLogout
in interface RedirectConfiguration
public void setLogout(@NonNull java.lang.String logout)
logout
- The URL@NonNull public UnauthorizedRedirectConfiguration getUnauthorized()
getUnauthorized
in interface RedirectConfiguration
public void setUnauthorized(RedirectConfigurationProperties.UnauthorizedRedirectConfigurationProperties unauthorized)
unauthorized
- unauthorized redirect configuration.@NonNull public ForbiddenRedirectConfiguration getForbidden()
getForbidden
in interface RedirectConfiguration
public void setForbidden(RedirectConfigurationProperties.ForbiddenRedirectConfigurationProperties forbidden)
forbidden
- forbidden redirect configuration.@NonNull public RefreshRedirectConfiguration getRefresh()
getRefresh
in interface RedirectConfiguration
public void setRefresh(RedirectConfigurationProperties.RefreshRedirectConfigurationProperties refresh)
refresh
- refresh redirect configuration.public void setPriorToLogin(boolean priorToLogin)
login-success
configuration for those cases. Default value false.priorToLogin
- Prior to login settingpublic boolean isPriorToLogin()
isPriorToLogin
in interface RedirectConfiguration