소스 검색

Add unsupported_token_type to OAuth2ErrorCodes

Closes gh-9184
Joe Grandja 4 년 전
부모
커밋
9d1637d2cd
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2ErrorCodes.java

+ 10 - 0
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";
 	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 <a href="https://tools.ietf.org/html/rfc7009#section-2.2.1">RFC-7009 - Section
+	 * 2.2.1 - Error Response</a>
+	 */
+	String UNSUPPORTED_TOKEN_TYPE = "unsupported_token_type";
+
 }
 }