java 声明列表_如何定义OIDC / userinfo请求的用户声明列表

我有一个在WSO2 Identity Server 5.0.0中运行的自定义UserStoreManager作为辅助用户存储 . 它非常适合用户身份验证 . 将其与OpenID Connect身份验证一起使用时,预期的声明不会在 /userinfo?schema=openid 请求的响应中返回给客户端 . 登录自定义UserStoreManager会显示使用以下声明名称调用getUserPropertyValues()方法:

["postalcode", "mail", "localityName", "sn", "cn", "nickName", "telephoneNumber", "gender", "givenName", "url", "country"]

对 /userinfo 请求的响应实际上仅返回该列表中的声明 . 无法获得其他索赔 .

我不明白的是这个列表的来源 . 配置的声明映射为“http://wso2.org/oidc/claim " defines for example " postalcode " as "默认支持= false " and "必需= false ". So I don't expect it to be in the list. On the other hand claim " sub " (or the name it is mapped to: " uid ") is not in the list, but its definition in dialect " http://wso2.org/oidc/claim”是

索赔Uri:sub

Mapped Attribute(s):uid

默认支持:true

必填: true

在哪里可以定义应该由/ userinfo?schema = openid请求为成功通过身份验证的用户返回的声明列表?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值