Add servlet support for OAuth 2.0 Token Exchange Grant
Issue gh-5199
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user