我正在尝试通过文档中所写的OAuth应用程序获取令牌,但我总是收到此错误
{“error_description”:“无效的OAuth客户端凭据”,“错误”:“unauthorized_client”}
我的行动:
- 我收到了代码:
https://bitbucket.org/site/oauth2/authorize?client_id= &response_type = code
- 我想收到此代码的令牌:
curl -X POST -u "client_id: my_application_secret" https://bitbucket.org/site/oauth2/access_token -d grant_type = authorization_code -d code =
也许我错过了什么?
谢谢!
1 回答
将所有client_id和secret替换为分别根据Bitbucket Settings的OAuth生成的使用者密钥和使用者密钥 .
当您成功授权您的集成应用程序并通过以下方式生成access_token:https://bitbucket.org/site/oauth2/access_token时,您应该会收到access_token .
干杯,
安妮