0
votes

using this URL as a reference and attempting token exchange with client ID and secret:

https://developers.onelogin.com/api-docs/1/oauth20-tokens/generate-tokens

I get a 404 error for the URL provided. I'm using:

https://api.us.onelogin.com/auth/oauth2/token

Am I missing something from the docs? Thanks!

2

2 Answers

2
votes

The API is working for me. Just curious - are you using the POST method?

1
votes

Have you tried the CURL example at the bottom of the doc page?

Just to be clear, you need to sub in your shard, which is prob us.

Like

curl -X POST -H "Authorization: client_id:{enteryours}, client_secret:{enteryours}" -H "Content-Type: application/json" -d '{ "grant_type":"client_credentials" }' 'https://api.us.onelogin.com/auth/oauth2/token'