Allows anonymous Use the Anonymous Authenticator policy to allow anyone access to a Taskyour API. The user’s user roles are taken from the API policy’s configurationpolicy configuration.
Execution Order
This Policy is executed after the other authentication mechanisms that are based on the client providing a token in the request, like the API Key or Callout Authenticators.
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 and 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. |