问题描述
限时送ChatGPT账号..我只想使用符合 本指南 是从 WSO2IS 的 5.4.0 版本开箱即用的.我使用的是 WSO2 IS 5.7.
I just want to use SCIM 2.0 REST APIs that per this guide are out of the box from 5.4.0 version of WSO2IS. I'm using WSO2 IS 5.7.
当我 GET/scim2/Me
使用 admin
用户(HTTP 基本身份验证)时,我得到 200 OK 响应,但是当我尝试使用不同的用户,我得到以下 HTTP 响应:
When I GET /scim2/Me
with admin
user (HTTP basic authentication), I get a 200 OK response, but when I try to call this API with a different user, I get the following HTTP response:
{
"schemas": "urn:ietf:params:scim:api:messages:2.0:Error",
"scimType": "invalidValue",
"detail": "Required attribute id is missing in the SCIM Object.",
"status": "400"
}
这里有什么问题?也许我错过了一些有关 WSO2IS SCIM API 使用的基础知识?
What's the problem here? Maybe I miss some basics on WSO2IS SCIM APIs usage?
推荐答案
根据错误消息,您的用户没有 SCIM id.登录管理控制台并导航 Claims ->列表 ->wso2/claims 并选择 User ID
声明.单击该声明的编辑按钮并保存,检查 Supported by Default
.然后,导航到 Users and Roles ->列出
并查看用户的个人资料并检查scim id是否为空.
As per the error message, your user doesn't have a SCIM id. Log in to the management console and navigate Claims -> List -> wso2/claims and select User ID
claim. Check Supported by Default
by clicking the edit button of that claim and save.
Then, navigate to Users and Roles -> List
and see the user's profile and check whether the scim id is empty / not.
如果 SCIM id 为空,则会出现上述错误.
If the SCIM id is empty the above error would be expected.
有一个配置 (SCIMEnabled
) 可以为用户存储启用 SCIM (https://docs.wso2/display/IS570/Configuring+a+Read-write+LDAP+User+Store).导航到
并检查 SCIMEnabled
在您的用户存储中是否设置为 true.
There is a config (SCIMEnabled
) to enable SCIM for the user store (https://docs.wso2/display/IS570/Configuring+a+Read-write+LDAP+User+Store). Navigate to <IS-HOME>/repository/conf/user-mgt.xml
and check whether SCIMEnabled
is set to true in your userstore.
这篇关于非管理员用户的 WSO2 身份服务器 SCIM/Me 端点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论