public interface OAuth2AuthHandler extends AuthHandler
Modifier and Type | Method and Description |
---|---|
String |
authURI(String redirectURL,
String state)
Build the authorization URL.
|
static OAuth2AuthHandler |
create(OAuth2Auth authProvider,
String uri)
Create a OAuth2 auth handler
|
OAuth2AuthHandler |
setupCallback(Route route)
add the callback handler to a given route.
|
addAuthorities, addAuthority
static OAuth2AuthHandler create(OAuth2Auth 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 © 2016. All rights reserved.