Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

to represent users stored in the users repository. Since our example users are not going to primarily have representation in the Magnolia repository, we have to create a new user class implementing

Javadoc
info.magnolia.cms.security.User
info.magnolia.cms.security.User

.

JAAS Module

The simplest way to accomplish our example and support both an external user information storage system as well as the Magnolia repository is to create a JAAS module extending

Javadoc
info.magnolia.jaas.sp.jcr.JCRAuthorizationModule
info.magnolia.jaas.sp.jcr.JCRAuthorizationModule

and just modify the following two methods:

...

Even with this modification the authentication method must be implemented as well in order to properly create a User object.

jaas.config

...

Now we have to add our new JAAS module to the JAAS configuration. As Since we want Magnolia to have be the fallback to Magnolia secondary user management method used, we put the new module first with the sufficient modifier:

...