【发布时间】:2018-09-05 17:04:05
【问题描述】:
我正在尝试按照文档中的说明通过我的 OAuth 应用程序获取令牌,但我总是收到此错误
{"error_description": "无效的 OAuth 客户端凭据", "error": “未授权客户端”}
我的行动:
-
我收到代码:
https://bitbucket.org/site/oauth2/authorize?client_id={my_application_key}&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={code}
也许我错过了什么?
谢谢!
【问题讨论】:
标签: api oauth bitbucket access-token