Hi,

On 29.07.2010 10:39, Bertrand Delacretaz wrote:
> On Thu, Jul 29, 2010 at 8:45 AM, Carsten Ziegeler <[email protected]> 
> wrote:
>> ...I think the AuthenticationInfo is something which might move to the
>> Sling API - when using the ResourceResolverFactory to get a resolver, it
>> would be a little bit nicer to be able to use the AuthenticationInfo
>> class instead of a plain map (for using the constructors and the 
>> constants)...
> 
> +1 to that, I'm also using that interface in [1] and having to depend
> on org.apache.sling.commons.auth just for this feels wrong.

But having the AuthenticationInfo as a request attribute feels even
wronger. Which is why I reopened SLING-1445.

> [1] 
> http://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/BackgroundRequestExecutionJob.java

You could also use something like ResourceResolver.clone(), right ?

Regards
Felix

Reply via email to