Skip to content

Commit 3acd2c6

Browse files
committed
Add since 6.4
Issue spring-projectsgh-15012
1 parent 81abc45 commit 3acd2c6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/oidc/user/OidcUserAuthority.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public OidcUserAuthority(OidcIdToken idToken, OidcUserInfo userInfo) {
6767
* may be {@code null}
6868
* @param userNameAttributeName the attribute name used to access the user's name from
6969
* the attributes
70+
* @since 6.4
7071
*/
7172
public OidcUserAuthority(OidcIdToken idToken, OidcUserInfo userInfo, @Nullable String userNameAttributeName) {
7273
this("OIDC_USER", idToken, userInfo, userNameAttributeName);
@@ -91,6 +92,7 @@ public OidcUserAuthority(String authority, OidcIdToken idToken, OidcUserInfo use
9192
* may be {@code null}
9293
* @param userNameAttributeName the attribute name used to access the user's name from
9394
* the attributes
95+
* @since 6.4
9496
*/
9597
public OidcUserAuthority(String authority, OidcIdToken idToken, OidcUserInfo userInfo,
9698
@Nullable String userNameAttributeName) {

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/user/OAuth2UserAuthority.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public OAuth2UserAuthority(Map<String, Object> attributes) {
5959
* @param attributes the attributes about the user
6060
* @param userNameAttributeName the attribute name used to access the user's name from
6161
* the attributes
62+
* @since 6.4
6263
*/
6364
public OAuth2UserAuthority(Map<String, Object> attributes, @Nullable String userNameAttributeName) {
6465
this("OAUTH2_USER", attributes, userNameAttributeName);
@@ -79,6 +80,7 @@ public OAuth2UserAuthority(String authority, Map<String, Object> attributes) {
7980
* @param attributes the attributes about the user
8081
* @param userNameAttributeName the attribute name used to access the user's name from
8182
* the attributes
83+
* @since 6.4
8284
*/
8385
public OAuth2UserAuthority(String authority, Map<String, Object> attributes, String userNameAttributeName) {
8486
Assert.hasText(authority, "authority cannot be empty");
@@ -104,6 +106,7 @@ public Map<String, Object> getAttributes() {
104106
/**
105107
* Returns the attribute name used to access the user's name from the attributes.
106108
* @return the attribute name used to access the user's name from the attributes
109+
* @since 6.4
107110
*/
108111
@Nullable
109112
public String getUserNameAttributeName() {

0 commit comments

Comments
 (0)