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/config/annotation/web/configurers/oauth2/server/authorization/OidcUserInfoEndpointConfigurer.java
@@ -56,22 +54,22 @@ public final class OidcUserInfoEndpointConfigurer extends AbstractOAuth2Configur
56
54
}
57
55
58
56
/**
59
-
* Sets the {@link Function} used to extract claims from an {@link OAuth2AuthenticationContext}
57
+
* Sets the {@link Function} used to extract claims from {@link OidcUserInfoAuthenticationContext}
60
58
* to an instance of {@link OidcUserInfo} for the UserInfo response.
61
59
*
62
60
* <p>
63
-
* The {@link OAuth2AuthenticationContext} gives the mapper access to the {@link OidcUserInfoAuthenticationToken}.
64
-
* In addition, the following context attributes are supported:
61
+
* The {@link OidcUserInfoAuthenticationContext} gives the mapper access to the {@link OidcUserInfoAuthenticationToken},
62
+
* as well as, the following context attributes:
65
63
* <ul>
66
-
* <li>{@code OAuth2Token.class} - The {@link OAuth2Token} containing the bearer token used to make the request.</li>
67
-
* <li>{@code OAuth2Authorization.class} - The {@link OAuth2Authorization} containing the {@link OidcIdToken} and
64
+
* <li>{@link OidcUserInfoAuthenticationContext#getAccessToken()} containing the bearer token used to make the request.</li>
65
+
* <li>{@link OidcUserInfoAuthenticationContext#getAuthorization()} containing the {@link OidcIdToken} and
68
66
* {@link OAuth2AccessToken} associated with the bearer token used to make the request.</li>
69
67
* </ul>
70
68
*
71
-
* @param userInfoMapper the {@link Function} used to extract claims from an {@link OAuth2AuthenticationContext} to an instance of {@link OidcUserInfo}
69
+
* @param userInfoMapper the {@link Function} used to extract claims from {@link OidcUserInfoAuthenticationContext} to an instance of {@link OidcUserInfo}
72
70
* @return the {@link OidcUserInfoEndpointConfigurer} for further configuration
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/oidc/authentication/OidcUserInfoAuthenticationProvider.java
@@ -115,26 +112,26 @@ public boolean supports(Class<?> authentication) {
115
112
}
116
113
117
114
/**
118
-
* Sets the {@link Function} used to extract claims from an {@link OAuth2AuthenticationContext}
115
+
* Sets the {@link Function} used to extract claims from {@link OidcUserInfoAuthenticationContext}
119
116
* to an instance of {@link OidcUserInfo} for the UserInfo response.
120
117
*
121
118
* <p>
122
-
* The {@link OAuth2AuthenticationContext} gives the mapper access to the {@link OidcUserInfoAuthenticationToken}.
123
-
* In addition, the following context attributes are supported:
119
+
* The {@link OidcUserInfoAuthenticationContext} gives the mapper access to the {@link OidcUserInfoAuthenticationToken},
120
+
* as well as, the following context attributes:
124
121
* <ul>
125
-
* <li>{@code OAuth2Token.class} - The {@link OAuth2Token} containing the bearer token used to make the request.</li>
126
-
* <li>{@code OAuth2Authorization.class} - The {@link OAuth2Authorization} containing the {@link OidcIdToken} and
122
+
* <li>{@link OidcUserInfoAuthenticationContext#getAccessToken()} containing the bearer token used to make the request.</li>
123
+
* <li>{@link OidcUserInfoAuthenticationContext#getAuthorization()} containing the {@link OidcIdToken} and
127
124
* {@link OAuth2AccessToken} associated with the bearer token used to make the request.</li>
128
125
* </ul>
129
126
*
130
-
* @param userInfoMapper the {@link Function} used to extract claims from an {@link OAuth2AuthenticationContext} to an instance of {@link OidcUserInfo}
127
+
* @param userInfoMapper the {@link Function} used to extract claims from {@link OidcUserInfoAuthenticationContext} to an instance of {@link OidcUserInfo}
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/authorization/OidcUserInfoTests.java
0 commit comments