public class OAuth2AuthHandlerImpl extends HTTPAuthorizationHandler<OAuth2Auth> implements OAuth2AuthHandler
typeauthProvider, realm| Constructor and Description |
|---|
OAuth2AuthHandlerImpl(Vertx vertx,
OAuth2Auth authProvider,
String callbackURL) |
| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthHandler |
extraParams(JsonObject extraParams)
Extra parameters needed to be passed while requesting a token.
|
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
OAuth2AuthHandler |
pkceVerifierLength(int length)
PKCE (RFC 7636) is an extension to the Authorization Code flow to prevent several attacks and to be able to
securely perform the OAuth exchange from public clients.
|
OAuth2AuthHandler |
prompt(String prompt)
Indicates the type of user interaction that is required.
|
OAuth2AuthHandler |
setupCallback(Route route)
add the callback handler to a given route.
|
OAuth2AuthHandler |
withScope(String scope)
scopes to be requested while requesting a token.
|
authenticateHeader, parseAuthorizationgetAuthProvider, handle, processExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createauthenticateHeader, parseCredentials, postAuthenticationpublic OAuth2AuthHandlerImpl(Vertx vertx, OAuth2Auth authProvider, String callbackURL)
public void parseCredentials(RoutingContext context, Handler<AsyncResult<Credentials>> handler)
AuthenticationHandlerparseCredentials in interface AuthenticationHandlercontext - the routing contexthandler - the handler to be called once the information is available.public OAuth2AuthHandler extraParams(JsonObject extraParams)
OAuth2AuthHandlerextraParams in interface OAuth2AuthHandlerextraParams - extra optional parameters.public OAuth2AuthHandler withScope(String scope)
OAuth2AuthHandlerwithScope in interface OAuth2AuthHandlerscope - scope.public OAuth2AuthHandler prompt(String prompt)
OAuth2AuthHandlerprompt in interface OAuth2AuthHandlerprompt - the prompt choice.public OAuth2AuthHandler pkceVerifierLength(int length)
OAuth2AuthHandlerpkceVerifierLength in interface OAuth2AuthHandlerlength - A number between 43 and 128. Or -1 to disable.public OAuth2AuthHandler setupCallback(Route route)
OAuth2AuthHandlersetupCallback in interface OAuth2AuthHandlerroute - a given route e.g.: `/callback`Copyright © 2021. All rights reserved.