public class AuthCodeImpl extends Object implements OAuth2Flow
| Modifier and Type | Field and Description |
|---|---|
protected OAuth2ClientOptions |
config |
protected Vertx |
vertx |
| Constructor and Description |
|---|
AuthCodeImpl(OAuth2AuthProviderImpl provider) |
| Modifier and Type | Method and Description |
|---|---|
String |
authorizeURL(JsonObject params)
Construct the URL to be used to redirect the user to the authorization page of the OAuth "Authorization Server"
|
void |
getToken(JsonObject params,
Handler<AsyncResult<AccessToken>> handler)
Returns the Access Token object.
|
protected final Vertx vertx
protected final OAuth2ClientOptions config
public AuthCodeImpl(OAuth2AuthProviderImpl provider)
public String authorizeURL(JsonObject params)
authorizeURL in interface OAuth2Flowparams - - redirectURI: A String that represents the registered application URI where the user is redirected after authorization.
scope: A String that represents the application privileges. Set to "openid" for OpenID Connect.
scopes: A array of strings that will encoded as a single string "scope" following the provider requirements
state: A String that represents an optional opaque value used by the client to maintain state between the request and the callback.public void getToken(JsonObject params, Handler<AsyncResult<AccessToken>> handler)
getToken in interface OAuth2Flowparams - - code: Authorization code (from previous step).
redirectURI: A String that represents the callback uri.handler - - The handler returning the results.Copyright © 2020. All rights reserved.