gpt4 book ai didi

request - 微软图形API : unsupported_response_type

转载 作者:行者123 更新时间:2023-12-02 12:19:26 24 4
gpt4 key购买 nike

我尝试按照本指南对 Microsoft Graph API 上的应用程序进行身份验证:https://azure.microsoft.com/en-gb/documentation/articles/active-directory-v2-protocols-oauth-client-creds/

当我向目录管理员请求权限时,出现此错误:

error=unsupported_response_type error_description=AADSTS70005: The token request contains one or more unsupported response token type(s): 'UnknownTokenType'

我使用了几个URL和URL示例,错误是相同的:https://login.microsoftonline.com/common/adminconsent?client_id=6731de76-14a6-49ae-97bc-6eba6914391e&state=12345&redirect_uri=http://localhost/myapp/permissions

我的请求有什么问题吗?

最佳答案

这对我来说也不起作用了。找到了一个替代网址来提供管理员同意。

https://login.microsoftonline.com/common/oauth2/authorize?client_id=xxxxx&prompt=admin_consent&state=12345&redirect_uri=https://localhost/myapp/permissions&response_type=code+id_token&nonce=AnyValueShouldBeRandom

这是标准的 OAuth 同意登录,但添加了提示=admin_consent。

关于request - 微软图形API : unsupported_response_type,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40587426/

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