Use of Audience
When fetching a access-token, you must always include audience
(in addition to clientId
and clientSecret
).
The credentials you have gotten might have access to several audiences, but you have to fetch the access-token for the audience needed for the specific API you are about to use.
audience
-value is specific per environment
Some audience
-values
Environment: Test/stage | Environment: Production |
---|---|
|
|
|
|
|
|
|
|
|
|