Class IdentityServiceJITProvisioningHandler

java.lang.Object
org.alfresco.repo.security.authentication.identityservice.IdentityServiceJITProvisioningHandler

public class IdentityServiceJITProvisioningHandler extends Object
This class handles Just in Time user provisioning. It extracts OIDCUserInfo from the given bearer token and creates a new user if it does not exist in the repository.
  • Constructor Details

  • Method Details

    • extractUserInfoAndCreateUserIfNeeded

      public Optional<OIDCUserInfo> extractUserInfoAndCreateUserIfNeeded(String bearerToken)
      Extracts OIDCUserInfo from the given bearer token and creates a new user if it does not exist in the repository. Call to the UserInfo endpoint is made only if the token does not contain a username claim or if user needs to be created and some of the OIDCUserInfo fields are empty.