gpt4 book ai didi

azure - 解决 SystemForCrossDomainIdentityManagementBadResponse

转载 作者:行者123 更新时间:2023-12-03 07:03:13 24 4
gpt4 key购买 nike

我已经实现了这个SCIM reference code在我们的应用程序中。

我实现的代码确实通过了此postman link中存在的所有用户测试集合。 。我的 SCIM Api 也被 Azure 接受作为用户的有效端点。

当我尝试从Azure 门户为用户执行按需配置时,真正的问题就开始了。

我收到以下错误代码:SystemForCrossDomainIdentityManagementBadResponse

错误消息:响应中缺少必需的属性。缺少的属性是标识符。以下是回复:

{
"result": {
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {},
"active": true,
"displayName": "Chris Brown",
"emails": [
{
"type": "work",
"primary": true,
"value": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d1b2b9a3b8a2ffb3a3bea6bf91a9a8abffb2bebc" rel="noreferrer noopener nofollow">[email protected]</a>"
}
],
"meta": {
"resourceType": "User",
"created": "2022-04-21T05:27:03.774148Z",
"lastModified": "2022-04-21T05:27:03.774148Z",
"version": null,
"location": null
},
"name": {
"formatted": "Chris Brown",
"familyName": "Brown",
"givenName": "Chris"
},
"preferredLanguage": "en-GB",
"userName": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8cbc0dac1db86cadac7dfc6e8d0d1d286cbc7c5" rel="noreferrer noopener nofollow">[email protected]</a>",
"externalId": "chris.brown",
"id": "a99b4da2-ab2f-49fc-8a01-4a9ce251fbdb",
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
]
},
"targetUrl": null,
"success": true,
"error": null,
"unAuthorizedRequest": false,
}

正如您可以清楚地看到的,我已将 id(标识符)添加到响应中。现在我对错误消息传达的内容感到困惑。

请帮忙。

用于清楚理解 Azure 门户中的错误消息的图像:

enter image description here

最佳答案

您的回复与 SCIM 规范不符。对 POST 的响应(我认为这就是它的本质,给出屏幕截图)是将实际响应嵌套在规范中根本没有定义的“Result”对象内。

看看https://datatracker.ietf.org/doc/html/rfc7644#section-3.3有关对 POST 的正确响应的示例。

此外,您的响应中还有许多“请求”属性/对象之外的属性,这些属性未在规范中定义,因此不合规。这些将是:

“目标网址”:空,“成功”:真实,“错误”:空,“unAuthorizedRequest”:错误,

关于azure - 解决 SystemForCrossDomainIdentityManagementBadResponse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71949489/

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