Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.0-RC40
-
None
Description
Here's how it works.
1. create a new class, that extends org.apache.directory.fortress.core.util.AuthNValidator
2. implement the abstract method validate:
public int validate(Session session, Constraint constraint, Time time, VUtil.ConstraintType type )
{ super.setRoleName( "AuthNUsers" ); return super.validate( session, constraint, time, type ); }Place the name of the role to verify.
3. add a new property to invoke your new class:
<config props="temporal.validator.5:org.mine.util.AuthNUserValidator"/>
4. add the new class to runtime classpath of fortress
5. add the new role.
6. assign to users as needed.
This validator will deactive the specified role iff the user is not authenticated.