The Location Intelligence APIs use Machine-to-Machine Authentication and Authorization with OAuth2.0 client credentials flow.
-
End-user requests Enlighted for API access.
-
Once approved, Enlighted will email the end-user with a Client ID and Client Secret.
-
Request Auth0 service for a Bearer token using a Client ID and Secret provided by Enlighted.
Example request for Bearer Token
1 curl --request POST \
2 --url https://enlightedinc-p01.us.auth0.com/oauth/token \
3 --header 'content-type: application/json' \
4 --data '{"client_id":<client_id>,"client_secret":<client_secret>,"audience":"https://rtls-us-east-1-prod.dsp.enlightedinc.com","grant_type":"client_credentials"}'
Response
1 {
2 "access_token": <access_token>,
3 "token_type": "Bearer"
4 }
Include Bearer token in the request header of the API request.
1 curl --header 'Authorization: <access_token>' --header 'x-dsp-selected-tenant-role: NA' ...
Comments
Article is closed for comments.