Package io.micronaut.security.config
Interface RedirectConfiguration
-
- All Superinterfaces:
io.micronaut.core.util.Toggleable
- All Known Implementing Classes:
RedirectConfigurationProperties
public interface RedirectConfiguration extends io.micronaut.core.util.Toggleable- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ForbiddenRedirectConfigurationgetForbidden()java.lang.StringgetLoginFailure()java.lang.StringgetLoginSuccess()java.lang.StringgetLogout()RefreshRedirectConfigurationgetRefresh()UnauthorizedRedirectConfigurationgetUnauthorized()booleanisPriorToLogin()
-
-
-
Method Detail
-
getLoginSuccess
@NonNull java.lang.String getLoginSuccess()
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a successful login.
-
getLoginFailure
@NonNull java.lang.String getLoginFailure()
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a failed login.
-
getLogout
@NonNull java.lang.String getLogout()
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after logout.
-
getUnauthorized
@NonNull UnauthorizedRedirectConfiguration getUnauthorized()
- Returns:
- configuration about where the user is redirected to after trying to access a secured route.
-
getForbidden
@NonNull ForbiddenRedirectConfiguration getForbidden()
- Returns:
- configuration about where the user is redirected to after trying to access a secured route for which the does not have sufficient roles.
-
getRefresh
@NonNull RefreshRedirectConfiguration getRefresh()
- Returns:
- configuration about where the user is redirected to after executing the refresh token endpoint.
-
isPriorToLogin
boolean isPriorToLogin()
- Returns:
- If the user attempted to access a URL while unauthenticated, and was subsequently redirected to login, redirect back to that URL post login (true). Use the static login success URL (false).
-
-