Class OidcUserProfileCreationPolicy

  • All Implemented Interfaces:
    com.xebialabs.xlrelease.security.authentication.policy.UserProfileCreationPolicy

    public class OidcUserProfileCreationPolicy
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      OidcUserProfileCreationPolicy​(com.xebialabs.xlrelease.service.UserProfileService userProfileService, com.xebialabs.deployit.security.UserService userService, java.lang.String emailClaim, java.lang.String fullNameClaim, java.lang.String externalIdClaim)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.xebialabs.xlrelease.domain.UserProfile createProfile​(org.springframework.security.core.Authentication authentication)  
      protected java.lang.String getString​(java.lang.String field, java.util.Map<java.lang.String,​java.lang.Object> data)  
      int order()  
      boolean policyApplies​(org.springframework.security.core.Authentication authentication)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OidcUserProfileCreationPolicy

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

      • 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 java.lang.String getString​(java.lang.String field,
                                             java.util.Map<java.lang.String,​java.lang.Object> data)