mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-05-31 17:22:13 +00:00
Add since 6.4
Issue gh-15012
This commit is contained in:
parent
81abc453fe
commit
3acd2c65d9
@ -67,6 +67,7 @@ public class OidcUserAuthority extends OAuth2UserAuthority {
|
|||||||
* may be {@code null}
|
* may be {@code null}
|
||||||
* @param userNameAttributeName the attribute name used to access the user's name from
|
* @param userNameAttributeName the attribute name used to access the user's name from
|
||||||
* the attributes
|
* the attributes
|
||||||
|
* @since 6.4
|
||||||
*/
|
*/
|
||||||
public OidcUserAuthority(OidcIdToken idToken, OidcUserInfo userInfo, @Nullable String userNameAttributeName) {
|
public OidcUserAuthority(OidcIdToken idToken, OidcUserInfo userInfo, @Nullable String userNameAttributeName) {
|
||||||
this("OIDC_USER", idToken, userInfo, userNameAttributeName);
|
this("OIDC_USER", idToken, userInfo, userNameAttributeName);
|
||||||
@ -91,6 +92,7 @@ public class OidcUserAuthority extends OAuth2UserAuthority {
|
|||||||
* may be {@code null}
|
* may be {@code null}
|
||||||
* @param userNameAttributeName the attribute name used to access the user's name from
|
* @param userNameAttributeName the attribute name used to access the user's name from
|
||||||
* the attributes
|
* the attributes
|
||||||
|
* @since 6.4
|
||||||
*/
|
*/
|
||||||
public OidcUserAuthority(String authority, OidcIdToken idToken, OidcUserInfo userInfo,
|
public OidcUserAuthority(String authority, OidcIdToken idToken, OidcUserInfo userInfo,
|
||||||
@Nullable String userNameAttributeName) {
|
@Nullable String userNameAttributeName) {
|
||||||
|
@ -59,6 +59,7 @@ public class OAuth2UserAuthority implements GrantedAuthority {
|
|||||||
* @param attributes the attributes about the user
|
* @param attributes the attributes about the user
|
||||||
* @param userNameAttributeName the attribute name used to access the user's name from
|
* @param userNameAttributeName the attribute name used to access the user's name from
|
||||||
* the attributes
|
* the attributes
|
||||||
|
* @since 6.4
|
||||||
*/
|
*/
|
||||||
public OAuth2UserAuthority(Map<String, Object> attributes, @Nullable String userNameAttributeName) {
|
public OAuth2UserAuthority(Map<String, Object> attributes, @Nullable String userNameAttributeName) {
|
||||||
this("OAUTH2_USER", attributes, userNameAttributeName);
|
this("OAUTH2_USER", attributes, userNameAttributeName);
|
||||||
@ -79,6 +80,7 @@ public class OAuth2UserAuthority implements GrantedAuthority {
|
|||||||
* @param attributes the attributes about the user
|
* @param attributes the attributes about the user
|
||||||
* @param userNameAttributeName the attribute name used to access the user's name from
|
* @param userNameAttributeName the attribute name used to access the user's name from
|
||||||
* the attributes
|
* the attributes
|
||||||
|
* @since 6.4
|
||||||
*/
|
*/
|
||||||
public OAuth2UserAuthority(String authority, Map<String, Object> attributes, String userNameAttributeName) {
|
public OAuth2UserAuthority(String authority, Map<String, Object> attributes, String userNameAttributeName) {
|
||||||
Assert.hasText(authority, "authority cannot be empty");
|
Assert.hasText(authority, "authority cannot be empty");
|
||||||
@ -104,6 +106,7 @@ public class OAuth2UserAuthority implements GrantedAuthority {
|
|||||||
/**
|
/**
|
||||||
* Returns the attribute name used to access the user's name from the attributes.
|
* 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
|
* @return the attribute name used to access the user's name from the attributes
|
||||||
|
* @since 6.4
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public String getUserNameAttributeName() {
|
public String getUserNameAttributeName() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user