Class IdentityServiceAuthenticationComponent

java.lang.Object
org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
org.alfresco.repo.security.authentication.identityservice.IdentityServiceAuthenticationComponent
All Implemented Interfaces:
ActivateableBean, AuthenticationComponent, AuthenticationContext

public class IdentityServiceAuthenticationComponent extends AbstractAuthenticationComponent implements ActivateableBean
Authenticates a user against the Identity Service (Keycloak / OAuth2 Authorization Server).

Delegates the actual credential-validation work to a UserTokenProvider so the component remains agnostic of how the token is obtained: a DirectUserTokenProvider hits the IdP on every call, while a CachingUserTokenProvider transparently caches previously validated tokens. If no provider is wired (e.g., identity-service.authentication.enable-username-password-authentication=false) this authenticator falls through to the next one in the chain by throwing.

  • Constructor Details

    • IdentityServiceAuthenticationComponent

      public IdentityServiceAuthenticationComponent()
  • Method Details