From 9d1637d2cd653748686bbd71831c41f9762e4301 Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Tue, 3 Nov 2020 14:00:26 -0500 Subject: [PATCH] Add unsupported_token_type to OAuth2ErrorCodes Closes gh-9184 --- .../security/oauth2/core/OAuth2ErrorCodes.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2ErrorCodes.java b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2ErrorCodes.java index edcc5f2d6b..3284b810c7 100644 --- a/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2ErrorCodes.java +++ b/oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2ErrorCodes.java @@ -119,4 +119,14 @@ public interface OAuth2ErrorCodes { */ String UNSUPPORTED_GRANT_TYPE = "unsupported_grant_type"; + /** + * {@code unsupported_token_type} - The authorization server does not support the + * revocation of the presented token type. + * + * @since 5.5 + * @see RFC-7009 - Section + * 2.2.1 - Error Response + */ + String UNSUPPORTED_TOKEN_TYPE = "unsupported_token_type"; + }