Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel3

...

The API Policy Manager has two types of functions that are integral to creating policies and setting up Proxy endpoint rules.

  • Asset Functions

  • Request Functions

...

Description

An object that contains all existing roles.

  • Policies that run before the Authorize by Role policy return an empty list.

  • Policies that run after the Authorize by Role policy return the user roles in a list of strings returned from the expression request.roles.

Responses: [anonymous] or [admins, members]

Syntax

request.roles

Example

Expression: request.roles

Result: admins, members

...