From 07d2e43d7aa0fd39ae23dec4547885d3fa5fb741 Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Mon, 15 Oct 2018 09:01:05 -0400 Subject: [PATCH] Deprecate NimbusAuthorizationCodeTokenResponseClient Fixes gh-5954 --- .../endpoint/NimbusAuthorizationCodeTokenResponseClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/NimbusAuthorizationCodeTokenResponseClient.java b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/NimbusAuthorizationCodeTokenResponseClient.java index 5f75b5646d..c92d007aea 100644 --- a/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/NimbusAuthorizationCodeTokenResponseClient.java +++ b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/NimbusAuthorizationCodeTokenResponseClient.java @@ -57,6 +57,7 @@ import java.util.Set; * * @author Joe Grandja * @since 5.0 + * @deprecated Use {@link DefaultAuthorizationCodeTokenResponseClient} * @see OAuth2AccessTokenResponseClient * @see OAuth2AuthorizationCodeGrantRequest * @see OAuth2AccessTokenResponse @@ -64,6 +65,7 @@ import java.util.Set; * @see Section 4.1.3 Access Token Request (Authorization Code Grant) * @see Section 4.1.4 Access Token Response (Authorization Code Grant) */ +@Deprecated public class NimbusAuthorizationCodeTokenResponseClient implements OAuth2AccessTokenResponseClient { private static final String INVALID_TOKEN_RESPONSE_ERROR_CODE = "invalid_token_response";