Class UserInfoMapper

java.lang.Object
ch.admin.bit.jeap.oauth.mock.server.token.UserInfoMapper
All Implemented Interfaces:
Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext, org.springframework.security.oauth2.core.oidc.OidcUserInfo>

public class UserInfoMapper extends Object implements Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext, org.springframework.security.oauth2.core.oidc.OidcUserInfo>
This implemetation is taken from OidcUserInfoAuthenticationProvider.DefaultOidcUserInfoMapper, and has been adapted to resemble user info as issued by Keycloak with the PAMS plugin.
  • 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 authenticationContext)
      Specified by:
      apply in interface Function<org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext, org.springframework.security.oauth2.core.oidc.OidcUserInfo>