Class UserInfoMapper
java.lang.Object
com.irurueta.authserver.authorization.api.web.tokens.UserInfoMapper
- All Implemented Interfaces:
Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext,org.springframework.security.oauth2.core.oidc.OidcUserInfo>
@Component
public class UserInfoMapper
extends Object
implements Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext,org.springframework.security.oauth2.core.oidc.OidcUserInfo>
Builds the OpenID Connect UserInfo response from the account of the user, limited to the granted scopes: the
sub claim always; preferred_username, roles and tenant with the profile
scope; email and email_verified with the email scope.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringScope that grants the e-mail claims.private final FindUserAccountUseCaseFinds the account of the user.static final StringScope that grants the profile claims. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.oauth2.core.oidc.OidcUserInfoapply(org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext context)
-
Field Details
-
PROFILE_SCOPE
Scope that grants the profile claims.- See Also:
-
EMAIL_SCOPE
Scope that grants the e-mail claims.- See Also:
-
findUserAccountUseCase
Finds the account of the user.
-
-
Constructor Details
-
UserInfoMapper
public UserInfoMapper()
-
-
Method Details
-
apply
public org.springframework.security.oauth2.core.oidc.OidcUserInfo apply(org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext context)
-