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-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AuthorizationCodeRequestAuthenticationContext.java
+14-10
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2020-2022 the original author or authors.
2
+
* Copyright 2020-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AuthorizationCodeRequestAuthenticationProvider.java
+25-37
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,8 @@ public final class OAuth2AuthorizationCodeRequestAuthenticationProvider implemen
@@ -280,47 +271,44 @@ public void setAuthenticationValidator(Consumer<OAuth2AuthorizationCodeRequestAu
280
271
}
281
272
282
273
/**
283
-
* Sets the {@link Predicate} used to determine if authorization consent is required.
274
+
* Sets the {@code Predicate} used to determine if authorization consent is required.
284
275
*
285
276
* <p>
286
277
* The {@link OAuth2AuthorizationCodeRequestAuthenticationContext} gives the predicate access to the {@link OAuth2AuthorizationCodeRequestAuthenticationToken},
287
278
* as well as, the following context attributes:
288
-
* {@link OAuth2AuthorizationCodeRequestAuthenticationContext#getRegisteredClient()} containing {@link RegisteredClient} used to make the request.
* {@link OAuth2AuthorizationCodeRequestAuthenticationContext#getOAuth2AuthorizationConsent()} containing {@link OAuth2AuthorizationConsent} granted in the request.
279
+
* <ul>
280
+
* <li>The {@link RegisteredClient} associated with the authorization request.</li>
281
+
* <li>The {@link OAuth2AuthorizationRequest} containing the authorization request parameters.</li>
282
+
* <li>The {@link OAuth2AuthorizationConsent} previously granted to the {@link RegisteredClient}, or {@code null} if not available.</li>
283
+
* </ul>
291
284
*
292
-
* @param requiresAuthorizationConsent the {@link Predicate} that determines if authorization consent is required.
293
-
* @since 1.3.0
285
+
* @param authorizationConsentRequired the {@code Predicate} used to determine if authorization consent is required
0 commit comments