Thanks Antonio! That's right. If my getPrinicpal returns a principal,
getAuthentication is invoked and succeeds. I assume that when my
getPrinicpal wasn't returning anything, the principal from jcr was getting
set if available.


On Tue, May 28, 2013 at 8:10 PM, Antonio Sanso <[email protected]> wrote:

> Hi Connuser,
>
> the reason why your getAuthentication is never called, I assume, is that
> the getPrincipal method in your custom LoginModule returns null
>
> Regards
>
> Antonio
>
> On May 27, 2013, at 9:07 AM, connuser1 connuser1 wrote:
>
> > Hi
> >
> > I have written an implementation of LoginModulePlugin. The problem that I
> > am facing is that whenever my login module plugin gets invoked with an
> > existing JCR user's credentials, its getAuthentication method is called
> but
> > whenever it is invoked with a non-existant JCR user credentials, it never
> > gets invoked, even though the canHandle method returns true for this
> > request. Is it necessary for a user with the specified credentials to
> > already exist in the JCR when authenticating via LoginModulePlugin?
> >
> > Regards
> > connuser
>
>

Reply via email to