Package io.micronaut.security.config
Class DefaultRedirectService
- java.lang.Object
-
- io.micronaut.security.config.DefaultRedirectService
-
- All Implemented Interfaces:
RedirectService
@Singleton public class DefaultRedirectService extends java.lang.Object implements RedirectService
Get redirection URLs combining context path and redirect configuration. It prepends context path before redirect configuration URLs.- Since:
- 3.7.2
-
-
Constructor Summary
Constructors Constructor Description DefaultRedirectService(RedirectConfiguration redirectConfiguration, io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider)DefaultRedirectService(RedirectConfiguration redirectConfiguration, java.util.List<io.micronaut.http.context.ServerContextPathProvider> serverContextPathProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringforbiddenUrl()java.lang.StringloginFailureUrl()java.lang.StringloginSuccessUrl()java.lang.StringlogoutUrl()java.lang.StringrefreshUrl()java.lang.StringunauthorizedUrl()
-
-
-
Constructor Detail
-
DefaultRedirectService
@Inject public DefaultRedirectService(RedirectConfiguration redirectConfiguration, java.util.List<io.micronaut.http.context.ServerContextPathProvider> serverContextPathProviders)
- Parameters:
serverContextPathProviders- Server Context Path providersredirectConfiguration- Redirect Configuration
-
DefaultRedirectService
public DefaultRedirectService(RedirectConfiguration redirectConfiguration, io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider)
- Parameters:
serverContextPathProvider- Server Context Path providerredirectConfiguration- Redirect Configuration
-
-
Method Detail
-
loginSuccessUrl
@NonNull public java.lang.String loginSuccessUrl()
- Specified by:
loginSuccessUrlin interfaceRedirectService- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a successful login.
-
loginFailureUrl
@NonNull public java.lang.String loginFailureUrl()
- Specified by:
loginFailureUrlin interfaceRedirectService- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a failed login.
-
logoutUrl
@NonNull public java.lang.String logoutUrl()
- Specified by:
logoutUrlin interfaceRedirectService- Returns:
- String to be parsed into a URI which represents where the user is redirected to after logout.
-
unauthorizedUrl
@NonNull public java.lang.String unauthorizedUrl()
- Specified by:
unauthorizedUrlin interfaceRedirectService- Returns:
- where the user is redirected to after trying to access a secured route.
-
forbiddenUrl
@NonNull public java.lang.String forbiddenUrl()
- Specified by:
forbiddenUrlin interfaceRedirectService- Returns:
- where the user is redirected to after trying to access a secured route for which the does not have sufficient roles.
-
refreshUrl
@NonNull public java.lang.String refreshUrl()
- Specified by:
refreshUrlin interfaceRedirectService- Returns:
- where the user is redirected to after executing the refresh token endpoint.
-
-