Package io.micronaut.security.config
Class DefaultRedirectService
java.lang.Object
io.micronaut.security.config.DefaultRedirectService
- All Implemented Interfaces:
- RedirectService
Get redirection URLs combining context path and redirect configuration.
 It prepends context path before redirect configuration URLs.
- Since:
- 3.7.2
- Author:
- Sergio del Amo
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultRedirectService(RedirectConfiguration redirectConfiguration, io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider) DefaultRedirectService(RedirectConfiguration redirectConfiguration, List<io.micronaut.http.context.ServerContextPathProvider> serverContextPathProviders) 
- 
Method SummaryModifier and TypeMethodDescription
- 
Constructor Details- 
DefaultRedirectService@Inject public DefaultRedirectService(RedirectConfiguration redirectConfiguration, List<io.micronaut.http.context.ServerContextPathProvider> serverContextPathProviders) - Parameters:
- serverContextPathProviders- Server Context Path providers
- redirectConfiguration- Redirect Configuration
 
- 
DefaultRedirectServicepublic DefaultRedirectService(RedirectConfiguration redirectConfiguration, io.micronaut.http.context.ServerContextPathProvider serverContextPathProvider) - Parameters:
- serverContextPathProvider- Server Context Path provider
- redirectConfiguration- Redirect Configuration
 
 
- 
- 
Method Details- 
loginSuccessUrl- Specified by:
- loginSuccessUrlin interface- RedirectService
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a successful login.
 
- 
loginFailureUrl- Specified by:
- loginFailureUrlin interface- RedirectService
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after a failed login.
 
- 
logoutUrl- Specified by:
- logoutUrlin interface- RedirectService
- Returns:
- String to be parsed into a URI which represents where the user is redirected to after logout.
 
- 
unauthorizedUrl- Specified by:
- unauthorizedUrlin interface- RedirectService
- Returns:
- where the user is redirected to after trying to access a secured route.
 
- 
forbiddenUrl- Specified by:
- forbiddenUrlin interface- RedirectService
- Returns:
- where the user is redirected to after trying to access a secured route for which the does not have sufficient roles.
 
- 
refreshUrl- Specified by:
- refreshUrlin interface- RedirectService
- Returns:
- where the user is redirected to after executing the refresh token endpoint.
 
 
-