vertx / io.vertx.kotlin.ext.web.handler / io.vertx.ext.web.handler.BasicAuthHandler

Extensions for io.vertx.ext.web.handler.BasicAuthHandler

authorizeAwait

suspend fun BasicAuthHandler.authorizeAwait(user: User): Unit

Authorizes the given user against all added authorities.

parseCredentialsAwait

suspend fun BasicAuthHandler.parseCredentialsAwait(context: RoutingContext): 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.