...
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 | ||||
---|---|---|---|---|
|
.
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 | ||||
---|---|---|---|---|
|
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:
...