[ 
https://issues.apache.org/jira/browse/SLING-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896481#action_12896481
 ] 

Felix Meschberger commented on SLING-1445:
------------------------------------------

What we could do is add a parameter to the ResourceResolver.copy() method:

     ResourceResolver copy(Map mergingCredentials);

mergingCredentials may be null; if not null, the contents of the 
mergingCredentials are merged with the credential Map used to create the 
ResourceResolver.

Thus the mergingCredentials could contain a different workspace name (or even a 
different username/password combo) to login.

Implementation-wise the ResourceResolver might probably keep the original 
credentials privately to use it to implement the copy method.

> store the AuthenticationInfo object in a request attribute
> ----------------------------------------------------------
>
>                 Key: SLING-1445
>                 URL: https://issues.apache.org/jira/browse/SLING-1445
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons
>            Reporter: Justin Edelson
>            Assignee: Justin Edelson
>             Fix For: Commons Auth 1.0.0
>
>
> called org.apache.sling.commons.auth.spi.AuthenticationInfo

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to