WSO2向JWT提出索赔

时间:2018-03-26 12:42:55

标签: wso2 wso2is

使用WSO Identity Server 5.3.0。 我想为JWT添加一个地址声明。我使用名为test的自定义用户存储管理器。我更新了当地的声明,如: enter image description here

并将其添加到服务提供商声明配置中:

enter image description here

注册表浏览oidc openid还包含地址: enter image description here

JWT无论如何都不包含地址声明。我错过了什么?

1 个答案:

答案 0 :(得分:0)

在路径Home>身份>声明>列表> claim.view。对于wso2.org/oidc/claim的可用声明,您将拥有地址,但在IS-5.3.0中默认情况下已使用http://wso2.org/claims/country进行映射。

您必须将地址的映射属性更改为http://wso2.org/claims/addresses