public interface OAuth2AuthHandler extends AuthHandler
| Modifier and Type | Method and Description |
|---|---|
String |
authURI(String redirectURL,
String state)
Build the authorization URL.
|
static OAuth2AuthHandler |
create(AuthProvider authProvider,
String uri)
Create a JWT auth handler
|
OAuth2AuthHandler |
setupCallback(Route route)
add the callback handler to a given route.
|
addAuthorities, addAuthoritystatic OAuth2AuthHandler create(AuthProvider authProvider, String uri)
authProvider - the auth provider to useString authURI(String redirectURL, String state)
redirectURL - where is the callback mounted.state - state opaque token to avoid forged requestsOAuth2AuthHandler setupCallback(Route route)
route - a given route e.g.: `/callback`Copyright © 2015. All rights reserved.