Modify a domains allow list

Use this operation to replace the current allow list for an application.

Accepted content types

  • application/x-www-form-urlencoded
  • multipart/form-data

Authentication

This operation uses your social login API key for authentication. This key can be found on the Settings page of the Social Login dashboard. ee Get started for more information.

Base URL

The base URL for this operation is your application domain followed by /api/v2; for example:

https://educationcenter.rpxnow.com/api/v2

You can find your application domain in the Social Login dashboard on the Settings page.

Example request

This command assigns two domains (*.rpxnow.com and *.akamai.com) to the allow list for the social login application 1234567891234567891234567891234567891234. When configured, only the domains on the allow list are able to communicate with your social login application. Among other things, that means you can only login or register from domains on the list.

curl -X POST \
  --data-urlencode apiKey=1234567891234567891234567891234567891234 \
  --data-urlencode domains='*.rpxnow.com,*.akamai.com' \
  https://janrain-docs.rpxnow.com/api/v2/set_domain_patterns

Example response

If your API call succeeds the responses consists of the status ok:

{
  "stat": "ok"
}

Parameters

Parameters can be configured as x-www-form-urlencoded or as multipart/form-data body parameters.

ParameterTypeRequiredDescription
apiKeystringSocial login secret for authenticating the operation. To verify your API key, log in to Console and, on the Manage Application page, check the value of the rpx_key setting. This value also appears on the Settings page in the Social Login dashboard.
domainsstringComma-separated list of domains that can communicate with your social login application. To clear the allowlist without adding any domains, set this member to null.