Hi,
I am trying to configure the Service user mapper configuration. I am seeing the below two configurations available in config manager
1. Apache Sling Service User Mapper Service
2. Apache Sling Service User Mapper Service Amendment
I would like to know which configuration is necessary to create service user mapping, 1 or 2 and the difference between both.
I went through lot of sites and end up in confusion
Some of my colleagues told, configuring "Apache Sling Service User Mapper Service" is enough to map service to user.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hello
The Apache Sling Service User Mapper Service is a global configuration, and that presents some difficulties because service user mappings are typically bundle-specific.
For example you have 2 sites deploys on one instance:
In order to avoid having to do the mappings manually when the two sites are deployed, you add each to a configuration that is installed with your bundle. The problem then is that if you deploy siteA and then siteB, the siteA mapping will be overwritten by the siteB mapping! Basically, whichever bundle you deploy last will take precedence.
In order to solve this, the Apache Sling Service User Mapper Service Amendment (which not a configuration but a configuration factory) allows you to add one configuration per bundle. This way you can deploy both sites in whatever order and you'll still retain both configs
Nothing in Apache Sling Service User Mapper Service:
All mappings in an Amendment:
If I were you, I would also use an Amendment, even if you only have one bundle to deploy... you never know what the future will bring!
Hello
The Apache Sling Service User Mapper Service is a global configuration, and that presents some difficulties because service user mappings are typically bundle-specific.
For example you have 2 sites deploys on one instance:
In order to avoid having to do the mappings manually when the two sites are deployed, you add each to a configuration that is installed with your bundle. The problem then is that if you deploy siteA and then siteB, the siteA mapping will be overwritten by the siteB mapping! Basically, whichever bundle you deploy last will take precedence.
In order to solve this, the Apache Sling Service User Mapper Service Amendment (which not a configuration but a configuration factory) allows you to add one configuration per bundle. This way you can deploy both sites in whatever order and you'll still retain both configs
Nothing in Apache Sling Service User Mapper Service:
All mappings in an Amendment:
If I were you, I would also use an Amendment, even if you only have one bundle to deploy... you never know what the future will bring!
Views
Likes
Replies