gpt4 book ai didi

azure - 输入参数 'scope' 无效。范围 https ://outlook. office365.com/EWS.AccessAsUser.All 无效

转载 作者:行者123 更新时间:2023-12-03 20:16:06 28 4
gpt4 key购买 nike

使用 client_credintials 授权类型请求 EWS oauth2 v2.0 的访问 token 时出现错误。

https://login.microsoftonline.com/tenantid/oauth2/v2.0/token

• Request Headers:

• Content-Type:"application/x-www-form-urlencoded"

• Postman-Token:"27a57c92-a5aa-47b7-8121-01ceb18d1d50"

• User-Agent:"PostmanRuntime/7.6.0"

• Host:"login.microsoftonline.com"


• Request Body:

• client_id:"***********************"

• client_secret:"*********************"

• scope:"https://outlook.office365.com/EWS.AccessAsUser.All"

• grant_type:"client_credentials"

响应正文:

• error:"invalid_scope" • error_description:"AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid. The scope https://outlook.office365.com/EWS.AccessAsUser.All is not valid. Trace ID: 9e6cbb7a-34ed-4797-b650-4c99becb3b00 Correlation ID: c2295999-9cc2-4ba3-a12b-a26f3fc10d08 Timestamp: 2019-01-25 06:17:43Z" • error_codes: • 0:70011 • timestamp:"2019-01-25 06:17:43Z" • trace_id:"9e6cbb7a-34ed-4797-b650-4c99becb3b00" correlation_id:"c2295999-9cc2-4ba3-a12b-a26f3fc10d08"

最佳答案

范围应该是https://outlook.office365.com/.default,那么它就可以正常工作。看这个link .

enter image description here

关于azure - 输入参数 'scope' 无效。范围 https ://outlook. office365.com/EWS.AccessAsUser.All 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54360069/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com