jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From connuser1 connuser1 <connus...@gmail.com>
Subject Re: No session returned on repository.login
Date Sat, 29 Sep 2012 03:38:20 GMT
Thanks Chetan!! My problem was resolved by your suggestion.

I extended the
org.apache.jackrabbit.core.security.authentication.DefaultLoginModule  and
just overrided its getPrincipal method to create a new user if it did not
find one in the repository. This way I could use DefaultLoginModule's
capability to authenticate against the repository. Hopefully it is the
right approach.

On Wed, Sep 26, 2012 at 4:07 PM, Chetan Mehrotra

> Hi,
> The access is failing because your login module does not add the
> EveryonePrincipal  to the set of principal associated with the Subject
> for that session.
> Your LoginModule should extend from the AbstractLoginModule as it
> takes cares of performing some common task. For example it would use
> the default principal provider to fetch the group membership which
> would always include membership to EveryonePrincipal. Also have a look
> at SimpleLoginModule in jacrabbit-core module
> Chetan Mehrotra

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message