...
Create an Application Access in Usage Engine as described in Configuring Application Access. Ensure to copy the Client Secret during creation since it will only be visible at that time.
Call the authorization api with your Application credentials. Configure the audience based on which Environments you are calling.
Code Block |
---|
client_id="f9bP7jTE63gNlA8jluCoPMs2ueP7si1L" client_secret="woN7vnKUVAC-y_WVd8Eih6R06mNfFA9V9ZUjid5Ae7iGE5R8Kll_fFY7EiRQ0d-9" curl "https://api.digitalroute.io/authentication/v1/oauth/token" \ -X POST \ -H "Content-Type: application/x-www-form-urlencoded" \ -d client_secret="woN7vnKUVAC-y_WVd8Eih6R06mNfFA9V9ZUjid5Ae7iGE5R8Kll_fFY7EiRQ0d-9"id=${client_id} \ -d client_id="f9bP7jTE63gNlA8jluCoPMs2ueP7si1L"secret=${client_secret} \ -d grant_type="client_credentials" \ -d audience="https://api.digitalroute.io/" |
...