Multiple AppIDs support
  • 09 Nov 2023
  • Dark
    Light

Multiple AppIDs support

  • Dark
    Light

Article Summary

v3.0

The SDK has support for multiple AppIDs. If your app communicates with multiple servers which have different AppIDs you should make sure that the correct HTTP headers are sent to each server.

You can configure multiple AppIDs for the HUMAN SDK, by calling the PerimeterX/start(appIds:delegate:policy:) function with all your AppIDs.

When using multiple AppIDs, you should:

  1. Specify the relevant AppID anytime you call functions in the SDK, when this parameter is available.
  2. Set the domain list in the policy for each AppID. Here is an example:
policy.set(domains: ["my-domain-1.com"], forAppId: "<APP_ID_1>")
policy.set(domains: ["my-domain-2.com"], forAppId: "<APP_ID_2>")
[policy setWithDomains:[NSSet setWithObject:@"my-domain-1.com"] forAppId:@"<APP_ID_1>"];
[policy setWithDomains:[NSSet setWithObject:@"my-domain-2.com"] forAppId:@"<APP_ID_2>"];

Was this article helpful?