Package com.hybris.samlssobackoffice
Class BackofficeSSOService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.samlsinglesignon.DefaultSSOService
com.hybris.samlssobackoffice.BackofficeSSOService
- All Implemented Interfaces:
SSOUserService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Extends the
DefaultSSOService to allow to control the SSO user access to Backoffice.
- When the SSO user mapping is done in properties, additional property is allowed:
sso.mapping.<usergroup>.enableBackofficeLogin=true
That will allow users with <usergroup> access to backoffice. - When mapping is done in database, there's additional field provided:
SamlUserGroupModel.ENABLEBACKOFFICELOGIN, that works analogically.
PrincipalModel.BACKOFFICELOGINDISABLED of the SSO user to
false.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.samlsinglesignon.DefaultSSOService
DefaultSSOService.SSOUserMappingNested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
FieldsFields inherited from class de.hybris.platform.samlsinglesignon.DefaultSSOService
MD5_PASS_ENCODING, SSO_DATABASE_USERGROUP_MAPPING, SSO_PASS_ENCODINGFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustUserAttributes(UserModel user, DefaultSSOService.SSOUserMapping mapping) Adjusting user groupsprotected DefaultSSOService.SSOUserMappingfindMappingInProperties(Collection<String> roles) protected booleangetEnableBackofficeLogin(Collection<String> roles) protected DefaultSSOService.SSOUserMappingperformMapping(List<SamlUserGroupModel> userGroupModels) Methods inherited from class de.hybris.platform.samlsinglesignon.DefaultSSOService
createNewUser, findMapping, findMappingInDatabase, getMappingForRole, getOrCreateSSOUser, lookupExisting, setModelService, setSamlUserGroupDAO, setUserService, validateMappingsMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Field Details
-
ENABLE_BACKOFFICE_LOGIN_PARAM
- See Also:
-
-
Constructor Details
-
BackofficeSSOService
public BackofficeSSOService()
-
-
Method Details
-
findMappingInProperties
- Overrides:
findMappingInPropertiesin classDefaultSSOService
-
getEnableBackofficeLogin
-
performMapping
- Overrides:
performMappingin classDefaultSSOService
-
adjustUserAttributes
Description copied from class:DefaultSSOServiceAdjusting user groups- Overrides:
adjustUserAttributesin classDefaultSSOService- Parameters:
user- the user to adjust the groups formapping- the mapping which holds the groups
-