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
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescription@NonNull ForbiddenRedirectConfiguration
@NonNull String
@NonNull String
@NonNull String
@NonNull RefreshRedirectConfiguration
@NonNull UnauthorizedRedirectConfiguration
boolean
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Method Details
-
getLoginSuccess
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a successful login.
-
getLoginFailure
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a failed login.
-
getLogout
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after logout.
-
getUnauthorized
- Returns:
- configuration about where the user is redirected to after trying to access a secured route.
-
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
- 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).
-