Class IdentityServiceRemoteUserMapper

java.lang.Object
org.alfresco.repo.security.authentication.identityservice.IdentityServiceRemoteUserMapper
All Implemented Interfaces:
ActivateableBean, RemoteUserMapper

public class IdentityServiceRemoteUserMapper extends Object implements RemoteUserMapper, ActivateableBean
A RemoteUserMapper implementation that detects and validates JWTs issued by the Alfresco Identity Service.
Author:
Gavin Cornwell
  • Constructor Details

    • IdentityServiceRemoteUserMapper

      public IdentityServiceRemoteUserMapper()
  • Method Details

    • setActive

      public void setActive(boolean isEnabled)
      Sets the active flag
      Parameters:
      isEnabled - true to enable the subsystem
    • setValidationFailureSilent

      public void setValidationFailureSilent(boolean silent)
      Determines whether token validation failures are silent
      Parameters:
      silent - true to silently fail, false to throw an exception
    • setBearerTokenResolver

      public void setBearerTokenResolver(org.springframework.security.oauth2.server.resource.web.BearerTokenResolver bearerTokenResolver)
    • setJitProvisioningHandler

      public void setJitProvisioningHandler(IdentityServiceJITProvisioningHandler jitProvisioningHandler)
    • getRemoteUser

      public String getRemoteUser(jakarta.servlet.http.HttpServletRequest request)
      Description copied from interface: RemoteUserMapper
      Gets an externally authenticated user ID from an HTTP request.
      Specified by:
      getRemoteUser in interface RemoteUserMapper
      Parameters:
      request - the request
      Returns:
      the user ID or null if the user is unauthenticated
    • isActive

      public boolean isActive()
      Description copied from interface: ActivateableBean
      Determines whether this bean is active.
      Specified by:
      isActive in interface ActivateableBean
      Returns:
      true if this bean is active