Skip to content

Commit 9d1637d

Browse files
committed
Add unsupported_token_type to OAuth2ErrorCodes
Closes gh-9184
1 parent dafedf9 commit 9d1637d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2ErrorCodes.java

+10
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,14 @@ public interface OAuth2ErrorCodes {
119119
*/
120120
String UNSUPPORTED_GRANT_TYPE = "unsupported_grant_type";
121121

122+
/**
123+
* {@code unsupported_token_type} - The authorization server does not support the
124+
* revocation of the presented token type.
125+
*
126+
* @since 5.5
127+
* @see <a href="https://tools.ietf.org/html/rfc7009#section-2.2.1">RFC-7009 - Section
128+
* 2.2.1 - Error Response</a>
129+
*/
130+
String UNSUPPORTED_TOKEN_TYPE = "unsupported_token_type";
131+
122132
}

0 commit comments

Comments
 (0)