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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.oauth2.core.oidc.OidcUserInfo
    apply(org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcUserInfoAuthenticationContext authenticationContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • 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>