非管理员用户的 WSO2 身份服务器 SCIM/Me 端点问题

编程入门 行业动态 更新时间:2024-10-28 01:22:52
本文介绍了非管理员用户的 WSO2 身份服务器 SCIM/Me 端点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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).导航到 /repository/conf/user-mgt.xml 并检查 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:关键词]

本文发布于:2023-04-24 22:07:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1072501.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:管理员   身份   服务器   用户   SCIM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!