interface RedirectAuthHandler : AuthHandler
An auth handler that's used to handle auth by redirecting user to a custom login page.
Author
Tim Fox
static val DEFAULT_LOGIN_REDIRECT_URL: String
Default path the user will be redirected to |
|
static val DEFAULT_RETURN_URL_PARAM: String
Default name of param used to store return url information in session |
open static fun create(authProvider: AuthProvider): AuthHandleropen static fun create(authProvider: AuthProvider, loginRedirectURL: String): AuthHandleropen static fun create(authProvider: AuthProvider, loginRedirectURL: String, returnURLParam: String): AuthHandler
Create a handler |
abstract fun addAuthorities(authorities: MutableSet<String>): AuthHandler
Add a set of required authorities for this auth handler |
|
abstract fun addAuthority(authority: String): AuthHandler
Add a required authority for this auth handler |
|
abstract fun authorize(user: User, handler: Handler<AsyncResult<Void>>): Unit
Authorizes the given user against all added authorities. |
|
abstract fun parseCredentials(context: RoutingContext, handler: Handler<AsyncResult<JsonObject>>): Unit
Parses the credentials from the request into a JsonObject. The implementation should be able to extract the required info for the auth provider in the format the provider expects. |