Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Allows anonymous access to a Task. The user’s roles are taken from the API policy’s configuration.


Note
titleAuthentication Policy Requirement

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
nameExpression Enabled Fields in API Policies


Expression Enabled Fields in API Policies

All expression enabled fields take expressions from the SnapLogic Expression Language or the API Policy Manager functions.




Parameter NameDescriptionDefault ValueExample
LabelRequired. The name for the API policy.Anonymous AuthenticatorProject - 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/Arequest.method == "POST"
Roles

RequiredA list of role names to be assigned to the client making the request. Click + to add roles.

Note
  • Blank role names are ignored.
  • An error is displayed if a duplicate role name is found. 
  • The role names specified can be checked in other API policies such as Client Throttling or Authorize By Role.


N/AN/A
Role

The name of the role.

anonymousanonymous
Status

Specifies whether the API policy is enabled or disabled. 

EnabledDisabled


Note
titleBest Practices

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.