Versions Compared

Key

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

...

To show you how login works in Magnolia, we have used a simplified login procedure. Assume you have two JAAS modules configured (red and green).

 
If you login to Magnolia by filling out the login form, all configured JAAS modules try to authenticate the user by calling the login() method which throws a {{LoginException }}if the login fails authentication. Since

...

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. Since we want Magnolia to be the secondary user management method used, we put the new module first with the sufficient modifier:

Code Block
magnolia {
  my.project.ExternalJAASModule sufficient;
  info.magnolia.jaas.sp.jcr.JCRAuthenticationModule requisite;
  info.magnolia.jaas.sp.jcr.JCRAuthorizationModule required;
};

...