Skip to content

Commit aeb999e

Browse files
committed
Add token and token_type_hint to OAuth2ParameterNames
Closes gh-9183
1 parent 0c25b8c commit aeb999e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,8 @@
1818

1919
/**
2020
* Standard and custom (non-standard) parameter names defined in the OAuth Parameters
21-
* Registry and used by the authorization endpoint and token endpoint.
21+
* Registry and used by the authorization endpoint, token endpoint and
22+
* token revocation endpoint.
2223
*
2324
* @author Joe Grandja
2425
* @since 5.0
@@ -119,4 +120,16 @@ public interface OAuth2ParameterNames {
119120
*/
120121
String REGISTRATION_ID = "registration_id";
121122

123+
/**
124+
* {@code token} - used in Token Revocation Request.
125+
* @since 5.5
126+
*/
127+
String TOKEN = "token";
128+
129+
/**
130+
* {@code token_type_hint} - used in Token Revocation Request.
131+
* @since 5.5
132+
*/
133+
String TOKEN_TYPE_HINT = "token_type_hint";
134+
122135
}

0 commit comments

Comments
 (0)