You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2015/12/11 23:39:46 UTC
[jira] [Created] (FC-127) AuthN Validator
Shawn McKinney created FC-127:
---------------------------------
Summary: AuthN Validator
Key: FC-127
URL: https://issues.apache.org/jira/browse/FC-127
Project: FORTRESS
Issue Type: Improvement
Affects Versions: 1.0.0-RC40
Reporter: Shawn McKinney
Fix For: 1.0.0-RC41
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)