public interface AuthenticationHandler extends io.vertx.core.Handler<RoutingContext>
An auth handler allows your application to provide authentication/authorization support.
Auth handler requires a SessionHandler
to be on the routing chain before it.
Modifier and Type | Method and Description |
---|---|
default String |
authenticateHeader(RoutingContext context)
Returns
|
default io.vertx.core.Future<io.vertx.ext.auth.authentication.Credentials> |
parseCredentials(RoutingContext context) |
void |
parseCredentials(RoutingContext context,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.authentication.Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
default void |
postAuthentication(RoutingContext ctx)
This method is called to perform any post authentication tasks, such as redirects.
|
void parseCredentials(RoutingContext context, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.authentication.Credentials>> handler)
context
- the routing contexthandler
- the handler to be called once the information is available.default io.vertx.core.Future<io.vertx.ext.auth.authentication.Credentials> parseCredentials(RoutingContext context)
context
- the routing contextparseCredentials(RoutingContext, Handler)
default String authenticateHeader(RoutingContext context)
context
- default void postAuthentication(RoutingContext ctx)
ctx
- the routing contextCopyright © 2021 Eclipse. All rights reserved.