@groovy.transform.CompileStatic class RedirectAuthHandler extends java.lang.Object
An auth handler that's used to handle auth by redirecting user to a custom login page.
Constructor and description |
---|
RedirectAuthHandler
(java.lang.Object delegate) |
Type | Name and description |
---|---|
AuthHandler |
addAuthorities(java.util.Set<java.lang.String> authorities) Add a set of required authorities for this auth handler |
AuthHandler |
addAuthority(java.lang.String authority) Add a required authority for this auth handler |
static AuthHandler |
create(AuthProvider authProvider) Create a handler |
static AuthHandler |
create(AuthProvider authProvider, java.lang.String loginRedirectURL) Create a handler |
static AuthHandler |
create(AuthProvider authProvider, java.lang.String loginRedirectURL, java.lang.String returnURLParam) Create a handler |
java.lang.Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add a set of required authorities for this auth handler
authorities
- the set of authoritiesAdd a required authority for this auth handler
authority
- the authorityCreate a handler
authProvider
- the auth service to useCreate a handler
authProvider
- the auth service to useloginRedirectURL
- the url to redirect the user toCreate a handler
authProvider
- the auth service to useloginRedirectURL
- the url to redirect the user toreturnURLParam
- the name of param used to store return url information in session