...
The asset variable allows Policy policy instances to access data associated with the asset that is being requested.
...
Description | Checks if the user is in the given role. |
---|---|
Syntax |
|
Example | Expression: request.isUserInRole('admin') Where the request was made by a user that has the admin role. Result: true |
...
Description | The HTTP method used for this request. |
---|---|
Syntax |
|
Example | Expression: request.method == 'POST' Where the request is a POST Result: true |
...
Description | The full path of the request. |
---|---|
Syntax |
|
Example | Expression: request.uri.path Result: /api/1/rest/feed/example/shared/HelloTask |
...
Description | The query parameters for this request. |
---|---|
Syntax |
|
Example | Expression: request.uri.query Result: $name |
...
Description | An object that contains the internal properties associated with the request. Snaplex References When configuring an OAuth policy scop, you might want to list the Snaplexes. You can use the following functions to do so:
|
---|---|
Syntax |
|
Example | Expression: Result: |
...