OneLogin API credentials

六眼飞鱼酱① 提交于 2019-12-13 03:14:41

问题


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"}}

来源:https://stackoverflow.com/questions/56445306/onelogin-api-credentials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!