You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously there was a tangle between
DefaultOAuth2AuthorizationRequestResolver and
OAuth2AuthorizationRequestRedirectFilter with
AUTHORIZATION_REQUIRED_EXCEPTION_ATTR_NAME
This commit adds a new method that can be used for resolving the
OAuth2AuthorizationRequest when the client registration id is known.
Issue: gh-4911
Copy file name to clipboardExpand all lines: config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2ClientConfigurerTests.java
+5-10
Original file line number
Diff line number
Diff line change
@@ -192,21 +192,16 @@ public void configureWhenRequestCacheProvidedAndClientAuthorizationRequiredExcep
Copy file name to clipboardExpand all lines: config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OAuth2LoginConfigurerTests.java
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/DefaultOAuth2AuthorizationRequestResolver.java
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/OAuth2AuthorizationRequestRedirectFilter.java
+1-6
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,6 @@ public class OAuth2AuthorizationRequestRedirectFilter extends OncePerRequestFilt
79
79
* The default base {@code URI} used for authorization requests.
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/OAuth2AuthorizationRequestResolver.java
+11
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@
25
25
* Used by the {@link OAuth2AuthorizationRequestRedirectFilter} for resolving Authorization Requests.
26
26
*
27
27
* @author Joe Grandja
28
+
* @author Rob Winch
28
29
* @since 5.1
29
30
* @see OAuth2AuthorizationRequest
30
31
* @see OAuth2AuthorizationRequestRedirectFilter
@@ -40,4 +41,14 @@ public interface OAuth2AuthorizationRequestResolver {
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/web/DefaultOAuth2AuthorizationRequestResolverTests.java
0 commit comments