@CompileStatic class RedirectAuthHandler
An auth handler that's used to handle auth by redirecting user to a custom login page.
| Constructor and description |
|---|
RedirectAuthHandler
(Object delegate) |
| Type | Name and description |
|---|---|
AuthHandler |
addAuthorities(Set<String> authorities)Add a set of required authorities for this auth handler |
AuthHandler |
addAuthority(String authority)Add a required authority for this auth handler |
static AuthHandler |
create(AuthProvider authProvider)Create a handler |
static AuthHandler |
create(AuthProvider authProvider, String loginRedirectURL)Create a handler |
static AuthHandler |
create(AuthProvider authProvider, String loginRedirectURL, String returnURLParam)Create a handler |
Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
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 sessionio.vertx:vertx-web:3.1.0