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
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/AuthorizedClientServiceOAuth2AuthorizedClientManager.java
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/OAuth2AuthorizationContext.java
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@
25
25
importjava.util.HashMap;
26
26
importjava.util.LinkedHashMap;
27
27
importjava.util.Map;
28
+
importjava.util.function.Consumer;
28
29
29
30
/**
30
31
* A context that holds authorization-specific state and is used by an {@link OAuth2AuthorizedClientProvider}
@@ -161,13 +162,16 @@ public Builder principal(Authentication principal) {
161
162
}
162
163
163
164
/**
164
-
* Sets the attributes associated to the context.
165
+
* Provides a {@link Consumer} access to the attributes associated to the context.
165
166
*
166
-
* @param attributes the attributes associated to the context
167
-
* @return the {@link Builder}
167
+
* @param attributesConsumer a {@link Consumer} of the attributes associated to the context
168
+
* @return the {@link OAuth2AuthorizeRequest.Builder}
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/DefaultOAuth2AuthorizedClientManager.java
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/DefaultReactiveOAuth2AuthorizedClientManager.java
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/OAuth2AuthorizationContextTests.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,10 @@ public void withClientRegistrationWhenPrincipalIsNullThenThrowIllegalArgumentExc
0 commit comments