Allows anonymous access to a Task. The user’s roles are taken from the API policy’s configuration.
Note | ||
---|---|---|
| ||
All Authentication policies require the Authorize By Role policy to authenticate the API caller correctly. For example, you can configure this policy to add the role “admin” to the client and then configure the Authorize By Role policy to authorize users with that role. |
Multiexcerpt macro | ||
---|---|---|
| ||
All expression enabled fields take expressions from the SnapLogic Expression Language or the API Policy Manager functions. |
Parameter Name | Description | Default Value | Example | ||
---|---|---|---|---|---|
Label | Required. The name for the API policy. | Anonymous Authenticator | Project - Anonymous Authenticator | ||
When this policy should be applied | An expression enabled field that determines the condition to be fulfilled for the API policy to execute. For example, if the value in this field is request.method == "POST", the API policy is executed only if the request method is a POST. | N/A | request.method == "POST" | ||
Roles | Required. A list of role names to be assigned to the client making the request. Click + to add roles.
| N/A | N/A | ||
Role | The name of the role. | anonymous | anonymous | ||
Status | Specifies whether the API policy is enabled or disabled. | Enabled | Disabled |
Note | ||
---|---|---|
| ||
Since this API policy allows anonymous access include a Client Throttling policy to restrict the number of anonymous requests to prevent a Snaplex from being overloaded by too many requests. |