【发布时间】:2021-04-23 09:07:15
【问题描述】:
我正在尝试在windev程序中开发驱动解决方案(Onedrive)。
我在 Microsoft Azure 中创建了一个应用程序并创建了一个密钥。
在执行第一个请求时 https://login.live.com/oauth20_authorize.srf?client_id={client_id}&scope={scope} &response_type=code&redirect_uri={redirect_uri} 我在连接页面上被重定向。
连接后,我会收到一个https://login.live.com/oauth20_authorize.srf?code={code}. 的代码
但是当我要求一个令牌发布这个请求时:POST https://login.live.com/oauth20_token.srf Content-Type: application/x-www-form-urlencoded client_id={client_id}&redirect_uri={redirect_uri}&client_secret={client_secret} &code={code}&grant_type=authorization_code
我拿回来了
{ "error":"invalid_client", "error_description":"The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https:\/\/go.microsoft.com\/fwlink\/?linkid=2083908.", "correlation_id":"471e800c-69b4-43c6-a03f-a1f7e9512e6b" }
感谢您的帮助。
【问题讨论】:
标签: azure-active-directory microsoft-graph-api onedrive windev