Create or edit JavaScript mapping rules.
About this task
When you activate the Advanced Access Control offering, the following mapping rule types are
available:
- AuthSvc
- Authorization service mapping rule.
- OAUTH
- OAuth mapping rule.
- OTP
- One-time password mapping rule.
- OIDC
- OpenID Connect mapping rule.
- SAML2_0
- SAML 2.0 mapping rule.
Procedure
-
Click AAC.
-
Under Global Settings, click Mapping Rules.
All existing mapping rules are displayed.
-
You can create and manage a mapping rule with the following methods:
- Create a mapping rule
-
- Click Add.
- In the Content field, enter the JavaScript mapping rule content.
- In the Name field, enter a name for the rule.
- In the Category field, select the type of the mapping rule from the
list.
Note: Only the mapping rule types that apply to your current activated offering are displayed
in the list.
- Click Save.
- Modify a mapping rule
-
- Select the mapping rule to modify.
- Click Edit.
- Modify the mapping rule in the Content field as needed.
Note: The
Name and Category fields are not editable.
- Click Save.
- Delete a mapping rule
-
- Select the mapping rule to delete.
- Click Delete.
- Click Delete to confirm.
- Replace a mapping rule
-
- Select the mapping rule to replace.
- Click Replace.
- Click the Browse button and select the local file that contains the new
contents.
- Click OK.
- Import a mapping rule
-
- Click Import.
- In the Name field, enter a name for the rule.
- In the Category field, select the type of the mapping rule from the
list.
Note: Only the mapping rule types that apply to your current activated offering are displayed
in the list.
- Click the Browse button and select the local file that contains the new
contents.
- Click OK.
- Export a mapping rule
-
- Select the mapping rule to export.
- Click Export.
- Import multiple mapping rules
-
- Click Manage and select Import Zip from the
drop-down menu.
- Click the Browse button and select the local zip file that contains the
mapping rules to import.
The mapping rules must exist in the root directory of the zip
file alongside a manifest.json file that describes each new mapping rule.
The
manifest.json file is an array of entries where each entry must
contain each of:
- name
- The name of the mapping rule.
- category
- The category of the mapping rule.
- fileName
- The name of the file in the zip that contains the mapping rule contents.
For example:
[
{“name”:”ruleA”, “category”:”InfoMap”, “fileName”:”ruleA.js”},
{“name”:”ruleB”, “category”:”AuthSvc”, “fileName”:”ruleB.js”}
]
An error will be returned if:
- A file exists without a manifest entry.
- A manifest entry exists for a non existent file.
- A manifest entry does not contain name, category, and fileName.
- Click OK.
- Exporting multiple mapping rules
-
- Click Manage and select Export Zip from the
drop-down menu.