Add token and token_type_hint to OAuth2ParameterNames

Closes gh-9183
This commit is contained in:
Joe Grandja 2020-11-03 13:32:28 -05:00
parent 0c25b8c1f9
commit aeb999eae2
1 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2019 the original author or authors. * Copyright 2002-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -18,7 +18,8 @@ package org.springframework.security.oauth2.core.endpoint;
/** /**
* Standard and custom (non-standard) parameter names defined in the OAuth Parameters * Standard and custom (non-standard) parameter names defined in the OAuth Parameters
* Registry and used by the authorization endpoint and token endpoint. * Registry and used by the authorization endpoint, token endpoint and
* token revocation endpoint.
* *
* @author Joe Grandja * @author Joe Grandja
* @since 5.0 * @since 5.0
@ -119,4 +120,16 @@ public interface OAuth2ParameterNames {
*/ */
String REGISTRATION_ID = "registration_id"; String REGISTRATION_ID = "registration_id";
/**
* {@code token} - used in Token Revocation Request.
* @since 5.5
*/
String TOKEN = "token";
/**
* {@code token_type_hint} - used in Token Revocation Request.
* @since 5.5
*/
String TOKEN_TYPE_HINT = "token_type_hint";
} }