Skip to content

Commit 9728f28

Browse files
committed
Add additional constants to OAuth2ParameterNames
These additional constants are used for optional parameters in the Access Token Request for the OAuth 2.0 Token Exchange Grant. Issue gh-5199
1 parent c611b7e commit 9728f28

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/endpoint/OAuth2ParameterNames.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,18 @@ public final class OAuth2ParameterNames {
182182
*/
183183
public static final String INTERVAL = "interval";
184184

185+
/**
186+
* {@code audience} - used in Token Exchange Access Token Request.
187+
* @since 6.3
188+
*/
189+
public static final String AUDIENCE = "audience";
190+
191+
/**
192+
* {@code resource} - used in Token Exchange Access Token Request.
193+
* @since 6.3
194+
*/
195+
public static final String RESOURCE = "resource";
196+
185197
/**
186198
* {@code requested_token_type} - used in Token Exchange Access Token Request.
187199
* @since 6.3

0 commit comments

Comments
 (0)