Class IdentityServiceRemoteUserMapper

    • Constructor Detail

      • IdentityServiceRemoteUserMapper

        public IdentityServiceRemoteUserMapper()
    • Method Detail

      • 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
      • setPersonService

        public void setPersonService​(PersonService personService)
        Sets the person service.
        Parameters:
        personService - the person service
      • setIdentityServiceDeployment

        public void setIdentityServiceDeployment​(org.keycloak.adapters.KeycloakDeployment deployment)
      • getRemoteUser

        public java.lang.String getRemoteUser​(javax.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