From 11cc94afd8e710b5ffb7e4ba2a378d0af2db6d8d Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Tue, 4 Aug 2020 07:18:43 -0400 Subject: [PATCH] Deprecate ImplicitGrantConfigurer Closes gh-8902 --- .../oauth2/client/ImplicitGrantConfigurer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/ImplicitGrantConfigurer.java b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/ImplicitGrantConfigurer.java index 55a83e9335..ccfff084db 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/ImplicitGrantConfigurer.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/ImplicitGrantConfigurer.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,11 +48,17 @@ import org.springframework.util.Assert; *
  • {@link ClientRegistrationRepository}
  • * * + * @deprecated It is not recommended to use the implicit flow + * due to the inherent risks of returning access tokens in an HTTP redirect + * without any confirmation that it has been received by the client. + * See reference OAuth 2.0 Implicit Grant. + * * @author Joe Grandja * @since 5.0 * @see OAuth2AuthorizationRequestRedirectFilter * @see ClientRegistrationRepository */ +@Deprecated public final class ImplicitGrantConfigurer> extends AbstractHttpConfigurer, B> {