vertx / io.vertx.reactivex.ext.web.handler / RedirectAuthHandler

RedirectAuthHandler

open class RedirectAuthHandler : AuthHandler, Handler<RoutingContext>

An auth handler that's used to handle auth by redirecting user to a custom login page. NOTE: This class has been automatically generated from the io.vertx.ext.web.handler.RedirectAuthHandler non RX-ified interface using Vert.x codegen.

Constructors

<init>

RedirectAuthHandler(delegate: RedirectAuthHandler)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<RedirectAuthHandler>

Functions

addAuthorities

open fun addAuthorities(authorities: MutableSet<String>): AuthHandler

Add a set of required authorities for this auth handler

addAuthority

open fun addAuthority(authority: String): AuthHandler

Add a required authority for this auth handler

authorize

open fun authorize(user: User, handler: Handler<AsyncResult<Void>>): Unit

Authorizes the given user against all added authorities.

create

open static fun create(authProvider: AuthProvider): AuthHandler
open static fun create(authProvider: AuthProvider, loginRedirectURL: String): AuthHandler
open static fun create(authProvider: AuthProvider, loginRedirectURL: String, returnURLParam: String): AuthHandler

Create a handler

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): RedirectAuthHandler

handle

open fun handle(arg0: RoutingContext): Unit

hashCode

open fun hashCode(): Int

newInstance

open static fun newInstance(arg: RedirectAuthHandler): RedirectAuthHandler

parseCredentials

open 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.

rxAuthorize

open fun rxAuthorize(user: User): Completable

Authorizes the given user against all added authorities.

rxParseCredentials

open fun rxParseCredentials(context: RoutingContext): Single<JsonObject>

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.

toString

open fun toString(): String