Class DirectUserTokenProvider

java.lang.Object
org.alfresco.repo.security.authentication.identityservice.DirectUserTokenProvider
All Implemented Interfaces:
UserTokenProvider

public class DirectUserTokenProvider extends Object implements 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.