Add servlet support for OAuth 2.0 Token Exchange Grant

Issue gh-5199
This commit is contained in:
Steve Riesenberg
2024-02-28 17:03:35 -06:00
parent 8cdd50a7d6
commit d2fe9094a9
10 changed files with 1775 additions and 0 deletions

View File

@@ -69,6 +69,12 @@ public final class AuthorizationGrantType implements Serializable {
public static final AuthorizationGrantType DEVICE_CODE = new AuthorizationGrantType(
"urn:ietf:params:oauth:grant-type:device_code");
/**
* @since 6.3
*/
public static final AuthorizationGrantType TOKEN_EXCHANGE = new AuthorizationGrantType(
"urn:ietf:params:oauth:grant-type:token-exchange");
private final String value;
/**

View File

@@ -182,6 +182,42 @@ public final class OAuth2ParameterNames {
*/
public static final String INTERVAL = "interval";
/**
* {@code requested_token_type} - used in Token Exchange Access Token Request.
* @since 6.3
*/
public static final String REQUESTED_TOKEN_TYPE = "requested_token_type";
/**
* {@code issued_token_type} - used in Token Exchange Access Token Response.
* @since 6.3
*/
private static final String ISSUED_TOKEN_TYPE = "issued_token_type";
/**
* {@code subject_token} - used in Token Exchange Access Token Request.
* @since 6.3
*/
public static final String SUBJECT_TOKEN = "subject_token";
/**
* {@code subject_token_type} - used in Token Exchange Access Token Request.
* @since 6.3
*/
public static final String SUBJECT_TOKEN_TYPE = "subject_token_type";
/**
* {@code actor_token} - used in Token Exchange Access Token Request.
* @since 6.3
*/
public static final String ACTOR_TOKEN = "actor_token";
/**
* {@code actor_token_type} - used in Token Exchange Access Token Request.
* @since 6.3
*/
public static final String ACTOR_TOKEN_TYPE = "actor_token_type";
private OAuth2ParameterNames() {
}