Class DirectUserTokenProvider
java.lang.Object
org.alfresco.repo.security.authentication.identityservice.DirectUserTokenProvider
- All Implemented Interfaces:
UserTokenProvider
UserTokenProvider that authenticates against the Identity Service on every call.
Performs the OAuth2 Resource-Owner-Password-Credentials grant and runs Just-In-Time provisioning so the local Person record exists before the resulting UserToken is returned. This implementation has no caching of any kind; every invocation is a round-trip to the Authorization Server.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectUserTokenProvider(IdentityServiceFacade identityServiceFacade, IdentityServiceJITProvisioningHandler jitProvisioningHandler) -
Method Summary
Modifier and TypeMethodDescriptiongetUserToken(UserTokenRequest request) Authenticate the supplied request against the Identity Service (or a local cache thereof) and return the resulting validated user token.
-
Constructor Details
-
DirectUserTokenProvider
public DirectUserTokenProvider(IdentityServiceFacade identityServiceFacade, IdentityServiceJITProvisioningHandler jitProvisioningHandler)
-
-
Method Details
-
getUserToken
Description copied from interface:UserTokenProviderAuthenticate the supplied request against the Identity Service (or a local cache thereof) and return the resulting validated user token.- Specified by:
getUserTokenin interfaceUserTokenProvider- Parameters:
request- credential pair; nevernull. Field-level null-validation is enforced byUserTokenRequestso implementations may rely on both components being non-null.- Returns:
- a validated
UserToken
-