Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The constants defined on the AuthenticationInfo class in the Commons Auth bundle should be moved as follows:
USER = "user.name"
to the ResourceResolverFactory interface
PASSWORD = "user.password";
to the ResourceResolverFactory interface
CREDENTIALS = "user.jcr.credentials";
to the JcrResourceResolverFactory interface
In addition support for checking the type of a credentials property is to be removed from the AuthenticationInfo class.
Likewise the following constants currently internal to the JcrResourceResolverFactoryImpl class should be moved:
AUTH_INFO_WORKSPACE = "internal.user.jcr.workspace";
to the JcrResourceResolverFactory interface
and change value to user.jcr.workspace (removing the internal prefix)
SESSION_ATTR_IMPERSONATOR = "impersonator";
to the ResourceResolverFactory interface
Finally the following constant from the ResourceResolverFactory interface should be changed:
SUDO_USER_ID = "sudo.user.id";
change the value to user.impersonation
At the end use constants should be ensured, mostly in the JcrResourceResolverFactoryImpl and JcrResourceResolver classes.