Hi,

As per the document [1], to pre-authenticate a user in the Sling tier,  one 
needs to do the following:

> 1. verify the identity in the layer on top of the JCR repository (e.g. in a 
> custom Sling Authentication Handler)
> 2. pass a custom, non-public Credentials implementation to the repository 
> login

The 1st step is clear, I was able to create a custom AuthenticationHandler and 
verify the identity. But how exactly do I pass custom Credentials 
implementation to the repository login?

AuthenticationHandler should return AuthenticationInfo, which is actually a 
HashMap<String, Object> with well-defined fields like user and password. I 
guess I have to put my custom Credentials instance there, but under what key?

Thanks in advance,
Dmitry

[1] 
http://jackrabbit.apache.org/oak/docs/security/authentication/preauthentication.html

Reply via email to