Class OidcUserProfileCreationPolicy

java.lang.Object
com.xebialabs.xlrelease.auth.oidc.policy.impl.OidcUserProfileCreationPolicy
All Implemented Interfaces:
com.xebialabs.xlrelease.security.authentication.policy.UserProfileCreationPolicy

public class OidcUserProfileCreationPolicy extends Object implements com.xebialabs.xlrelease.security.authentication.policy.UserProfileCreationPolicy
Fill UserProfile from Open ID Connect Claims

http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims

  • Constructor Details

    • OidcUserProfileCreationPolicy

      public OidcUserProfileCreationPolicy(com.xebialabs.xlrelease.service.UserProfileService userProfileService, com.xebialabs.deployit.security.UserService userService, String emailClaim, String fullNameClaim, String externalIdClaim)
  • Method Details

    • policyApplies

      public boolean policyApplies(org.springframework.security.core.Authentication authentication)
      Specified by:
      policyApplies in interface com.xebialabs.xlrelease.security.authentication.policy.UserProfileCreationPolicy
    • order

      public int order()
      Specified by:
      order in interface com.xebialabs.xlrelease.security.authentication.policy.UserProfileCreationPolicy
    • createProfile

      public com.xebialabs.xlrelease.domain.UserProfile createProfile(org.springframework.security.core.Authentication authentication)
      Specified by:
      createProfile in interface com.xebialabs.xlrelease.security.authentication.policy.UserProfileCreationPolicy
    • getString

      protected String getString(String field, Map<String,Object> data)