pfappserver::Form::Config::Authentication::Rule - Rules of a user source
Form definition to manage the rules (conditions and actions) of an authentication source.
Dynamically construct the 'templates' block of actions corresponding to the authentication source type.
The templates block contains the dynamic fields of the rule definition.
The following fields depend on the selected condition attribute : - the condition operators select fields - the condition value fields The following fields depend on the selected action type : - the action value fields
The field substitution is made through JavaScript.
Populate the condition attributes select field with the available attributes of the authentication source.
Populate the operators select field with all possible options. The options will be later limited using JavaScript when displaying the rule.
Populate the connection types and connection groups field for the 'connection type' condition.
Return the appropriate operators for the condition type select field.
Validate the following constraints :
- an access duration and an unregistration date cannot be both defined - an access duration or an unregistration date must be defined when setting a role - one of these actions must be defined: set role, mark as sponsor, set access level - oauth2 sources must have a set role action
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.