Class IdentityServiceRemoteUserMapper
- java.lang.Object
-
- org.alfresco.repo.security.authentication.identityservice.IdentityServiceRemoteUserMapper
-
- All Implemented Interfaces:
ActivateableBean,RemoteUserMapper
public class IdentityServiceRemoteUserMapper extends java.lang.Object implements RemoteUserMapper, ActivateableBean
ARemoteUserMapperimplementation that detects and validates JWTs issued by the Alfresco Identity Service.- Author:
- Gavin Cornwell
-
-
Constructor Summary
Constructors Constructor Description IdentityServiceRemoteUserMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRemoteUser(javax.servlet.http.HttpServletRequest request)Gets an externally authenticated user ID from an HTTP request.booleanisActive()Determines whether this bean is active.voidsetActive(boolean isEnabled)Sets the active flagvoidsetIdentityServiceDeployment(org.keycloak.adapters.KeycloakDeployment deployment)voidsetPersonService(PersonService personService)Sets the person service.voidsetValidationFailureSilent(boolean silent)Determines whether token validation failures are silent
-
-
-
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:RemoteUserMapperGets an externally authenticated user ID from an HTTP request.- Specified by:
getRemoteUserin interfaceRemoteUserMapper- Parameters:
request- the request- Returns:
- the user ID or
nullif the user is unauthenticated
-
isActive
public boolean isActive()
Description copied from interface:ActivateableBeanDetermines whether this bean is active.- Specified by:
isActivein interfaceActivateableBean- Returns:
trueif this bean is active
-
-