Hi,

It was my first idea for create a LoginModulePlugin and maybe an
AccessManagerPlugin but I'm wondering if it is not easier in my case
to just create a custom implementation of UserManager because my
authentication process is the same as the Sling default one but with
the usage of a different/external user storage.

What do you think about that ? Is not a good solution ?

Christophe

2009/9/14 Juan José Vázquez Delgado <[email protected]>:
> Hi,
>
>> I'm not the jackrabbit security expert but it seems that should be
>> possible with a custom UserManager. I think it is not possible to plug
>> my custom UserManager implementation as a bundle.
>
> You might want to have a look at jackrabbit-usermanager [1] and
> jackrabbit-accessmanager [2] bundles.
>
>>
>> So, what is the best approach for that kind of externalisation ? Do I
>> have create my own JackrabbitSecurityManager ?
>
> I don´t know if it´s the best approach but consider to leverage [1] to
> write your own user manager module. For instance:
>
> /**
>  * @scr.component label="%myCustomLoginModule.name"
> description="%myCustomLoginModule.description" immediate="true"
>  * @scr.service
> interface="org.apache.sling.jcr.jackrabbit.server.security.LoginModulePlugin"
>  */
> public class MyCustomLoginModule implements LoginModulePlugin {
>
> .....................
>
>    public AuthenticationPlugin getAuthentication(Principal principal,
>            Credentials creds) throws RepositoryException {
>        return new CustomAuthenticationPlugin();
>    }
>
> ....................
>
> }
>
> Hope this helps.
>
> BR,
>
> Juanjo.
>
> [1] 
> http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-usermanager
> [2] 
> http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-accessmanager
>

Reply via email to