使用wso2的OpenId Connect仅返回子声明 [英] OpenId Connect with wso2 returns only sub claim

查看:97
本文介绍了使用wso2的OpenId Connect仅返回子声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我询问用户WSO2的信息时,响应仅包含其子对象。

When I ask the information of the user WSO2, the response contains only his sub.

Request GET https://srv-wso2.domain.com:9443/oauth2/userinfo?schema=openid
Request headers {Accept=[application/json, application/*+json], Authorization=[Bearer 50ff3e7940248bdc01e2c1d33de77537], Content-Length=[0]}
Response body {"sub":"RECIF/arnaud@carbon.super"}

在存储库/conf/identity/identity.xml文件中,OpenIdConnect配置为使用
http:// wso2 .org / claims 作为UserInfoEndpointClaimDialect。

In repository/conf/identity/identity.xml file, OpenIdConnect is configured to use http://wso2.org/claims as UserInfoEndpointClaimDialect.

我使用Active Directory作为用户存储。
在声明配置中,应该映射一些映射,例如displayName或givenName或全名。

I use an Active Directory as user store. And in claims configuration, some mappings should be hit like displayName or givenName or fullname.

任何想法吗?

编辑:我对游乐场2应用程序有同样的问题。
我使用WSO2 5.1.0

I have the same problems with the playground2 application. I use WSO2 5.1.0

推荐答案

有一个已打开的错误: https://wso2.org/jira/browse/IDENTITY-4250 并发出了拉取请求: https://github.com/wso2/carbon-identity/pull/1677

There is an opened bug: https://wso2.org/jira/browse/IDENTITY-4250 and a pull request has made: https://github.com/wso2/carbon-identity/pull/1677

这篇关于使用wso2的OpenId Connect仅返回子声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆