Skip to content

Commit

Permalink
Add since 6.4
Browse files Browse the repository at this point in the history
Issue gh-15012
  • Loading branch information
sjohnr committed Jun 4, 2024
1 parent 81abc45 commit 3acd2c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public OidcUserAuthority(OidcIdToken idToken, OidcUserInfo userInfo) {
* may be {@code null}
* @param userNameAttributeName the attribute name used to access the user's name from
* the attributes
* @since 6.4
*/
public OidcUserAuthority(OidcIdToken idToken, OidcUserInfo userInfo, @Nullable String userNameAttributeName) {
this("OIDC_USER", idToken, userInfo, userNameAttributeName);
Expand All @@ -91,6 +92,7 @@ public OidcUserAuthority(String authority, OidcIdToken idToken, OidcUserInfo use
* may be {@code null}
* @param userNameAttributeName the attribute name used to access the user's name from
* the attributes
* @since 6.4
*/
public OidcUserAuthority(String authority, OidcIdToken idToken, OidcUserInfo userInfo,
@Nullable String userNameAttributeName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public OAuth2UserAuthority(Map<String, Object> attributes) {
* @param attributes the attributes about the user
* @param userNameAttributeName the attribute name used to access the user's name from
* the attributes
* @since 6.4
*/
public OAuth2UserAuthority(Map<String, Object> attributes, @Nullable String userNameAttributeName) {
this("OAUTH2_USER", attributes, userNameAttributeName);
Expand All @@ -79,6 +80,7 @@ public OAuth2UserAuthority(String authority, Map<String, Object> attributes) {
* @param attributes the attributes about the user
* @param userNameAttributeName the attribute name used to access the user's name from
* the attributes
* @since 6.4
*/
public OAuth2UserAuthority(String authority, Map<String, Object> attributes, String userNameAttributeName) {
Assert.hasText(authority, "authority cannot be empty");
Expand All @@ -104,6 +106,7 @@ public Map<String, Object> getAttributes() {
/**
* Returns the attribute name used to access the user's name from the attributes.
* @return the attribute name used to access the user's name from the attributes
* @since 6.4
*/
@Nullable
public String getUserNameAttributeName() {
Expand Down

0 comments on commit 3acd2c6

Please sign in to comment.