gpt4 book ai didi

Azure 到 Auth0 连接 - 提供的客户端 key 无效

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

我使用 Azure AD 作为我的身份提供商 (IdP),并尝试将 Auth0 作为客户端连接到它。我已按照中提到的所有步骤进行操作 https://auth0.com/docs/connections/enterprise/azure-active-directory/v2

从 Auth0 到 Azure AD 的重定向正在按预期工作。 Azure AD 端的登录也在其日志中显示成功,但是我在 Auth0 端收到错误消息,其中显示:“提供了无效的客户端密码”我已经仔细检查了客户 secret 。新生成的它是为了消除其过期的可能性,但仍然出现此错误。以下是错误消息负载。

"error": {
"message": "failed to obtain access token",
"oauthError": "invalid_request",
"type": "request-error",
"payload": "{
"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.
Trace ID: 52ea6301-3da2-46c7-b355-865dfff34c01
Correlation ID: 69415f95-1430-45eb-b653-3c76f934ccc0
Timestamp: 2021-11-29 05:11:57Z",
"error_codes":[7000215],
"timestamp":"2021-11-29 05:11:57Z",
"trace_id":"52ea6301-3da2-46c7-b355-865dfff34c01",
"correlation_id":"69415f95-1430-45eb-b653-3c76f934ccc0",
"error_uri":"https://login.microsoftonline.com/error?code=7000215"}"
},

最佳答案

确保您复制了客户端 key 值而不是客户端 key ID。

提供了错误的客户端 key 值,得到与您相同的错误。

enter image description here

建议您尝试使用我为授权类型 OAuth2.0 设置的以下参数。

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

enter image description here enter image description here

给出正确的客户端 key 值并获取访问 token 。

enter image description here

关于Azure 到 Auth0 连接 - 提供的客户端 key 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70150707/

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