OneLogin API credentials

2019-08-16 02:01发布

问题:

Im trying to make a basic call to the ONELOGIN API. After generating the cliend ID and secret with MANAGE ALL permissions, im still unable to connect

Generated correctly the ID and secret with the right permissions as per official documentation

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

i expected to connect, instaead the output is

{"status":{"error":true,"code":401,"type":"Unauthorized","message":"Authentication Failure"}}