public class OAuth2API extends Object
| Constructor and Description |
|---|
OAuth2API(Vertx vertx,
OAuth2Options config) |
| Modifier and Type | Method and Description |
|---|---|
String |
authorizeURL(JsonObject params)
The client sends the end-user's browser to this endpoint to request their authentication and consent.
|
String |
endSessionURL(String idToken,
JsonObject params)
The logout (end-session) endpoint is specified in OpenID Connect Session Management 1.0.
|
void |
fetch(HttpMethod method,
String path,
JsonObject headers,
Buffer payload,
Handler<AsyncResult<OAuth2Response>> callback) |
void |
jwkSet(Handler<AsyncResult<JsonObject>> handler)
Retrieve the public server JSON Web Key (JWK) required to verify the authenticity of issued ID and access tokens.
|
void |
logout(String accessToken,
String refreshToken,
Handler<AsyncResult<Void>> callback)
Sign out an end-user.
|
static void |
processNonStandardHeaders(JsonObject json,
OAuth2Response reply,
String sep) |
void |
token(String grantType,
JsonObject params,
Handler<AsyncResult<JsonObject>> handler)
Post an OAuth 2.0 grant (code, refresh token, resource owner password credentials, client credentials) to obtain an ID and / or access token.
|
void |
tokenIntrospection(String tokenType,
String token,
Handler<AsyncResult<JsonObject>> handler)
Validate an access token and retrieve its underlying authorisation (for resource servers).
|
void |
tokenRevocation(String tokenType,
String token,
Handler<AsyncResult<Void>> handler)
Revoke an obtained access or refresh token.
|
void |
userInfo(String accessToken,
JWT jwt,
Handler<AsyncResult<JsonObject>> handler)
Retrieve profile information and other attributes for a logged-in end-user.
|
public OAuth2API(Vertx vertx, OAuth2Options config)
public void jwkSet(Handler<AsyncResult<JsonObject>> handler)
public String authorizeURL(JsonObject params)
public void token(String grantType, JsonObject params, Handler<AsyncResult<JsonObject>> handler)
public void tokenIntrospection(String tokenType, String token, Handler<AsyncResult<JsonObject>> handler)
public void tokenRevocation(String tokenType, String token, Handler<AsyncResult<Void>> handler)
public void userInfo(String accessToken, JWT jwt, Handler<AsyncResult<JsonObject>> handler)
public String endSessionURL(String idToken, JsonObject params)
public void logout(String accessToken, String refreshToken, Handler<AsyncResult<Void>> callback)
public void fetch(HttpMethod method, String path, JsonObject headers, Buffer payload, Handler<AsyncResult<OAuth2Response>> callback)
public static void processNonStandardHeaders(JsonObject json, OAuth2Response reply, String sep)
Copyright © 2021. All rights reserved.