Updating PreTokenGeneration to limit OAuth tokens

Update the latest version of the PreTokenGeneration mapping rule to limit the number of OAuth tokens per user per definition.

Follow this procedure so that any API protection definitions we created in a previous version can take advantage of limiting OAuth tokens. If we create new definitions, the latest PreTokenGeneration mapping rule is used.

Steps

  1. Log in to the local management interface.
  2. Download the updated mapping rule:
    1. Click System > File Downloads.
    2. Expand access_control > examples > mapping_rules.
    3. Select oauth_20_pre_mapping.js.
    4. Click Export.
  3. Optional: Edit and customize the mapping rule if you customized it in the previous version.
  4. Replace the PreTokenGeneration mapping rule for the existing API protection definitions.
    1. Click AAC > API Protection.
    2. Click Advanced.
    3. Select the appropriate PreTokenGeneration mapping rule.
    4. Click Replace.
    5. Browse for the updated mapping rule and click OK.
  5. Deploy the changes.

Parent topic: Upgrade configuration