Class IdentityServiceJITProvisioningHandler
java.lang.Object
org.alfresco.repo.security.authentication.identityservice.IdentityServiceJITProvisioningHandler
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 Summary
ConstructorsConstructorDescriptionIdentityServiceJITProvisioningHandler(IdentityServiceFacade identityServiceFacade, PersonService personService, TransactionService transactionService, IdentityServiceConfig identityServiceConfig) -
Method Summary
Modifier and TypeMethodDescriptionextractUserInfoAndCreateUserIfNeeded(String bearerToken) ExtractsOIDCUserInfofrom the given bearer token and creates a new user if it does not exist in the repository.
-
Constructor Details
-
IdentityServiceJITProvisioningHandler
public IdentityServiceJITProvisioningHandler(IdentityServiceFacade identityServiceFacade, PersonService personService, TransactionService transactionService, IdentityServiceConfig identityServiceConfig)
-
-
Method Details
-
extractUserInfoAndCreateUserIfNeeded
ExtractsOIDCUserInfofrom 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 theOIDCUserInfofields are empty.
-