Dynamic token per domain
This system authenticates on a per-domain basis. Every call must be authenticated within the domain it targets, and that domain changes per request.
Because the domain is dynamic, it must be passed into the adapter method on each call and injected into the authData object of the request. The adapter library is already prepared to handle this — no changes to the library are needed — but code changes in adapter.js and pronghorn.json are required.
Configuration
adapter.js
Add a parameter to each method that needs domain-based authentication (in this example, domainVar) and set it in the authData object on the reqObj. The adapter library will include this data in the authentication request body.
pronghorn.json
Add the corresponding input parameter to each affected method in pronghorn.json so the domain value can be passed in from anItential Platform workflow.