在WSO2中配置Microsoft Windows Live声明

时间:2016-05-03 08:24:15

标签: wso2 wso2is

我已按照此链接配置Microsoft Windows Live登录 https://docs.wso2.com/display/IS510/Configuring+Microsoft+Windows+Live

在WSO2日志中,我可以看到我从IDP收到的远程声明

[2016-05-03 15:47:14,027] DEBUG {org.wso2.carbon.identity.application.authentication.framework.handler.claims.impl.DefaultClaimHandler} -  Executing c
laim handler. isFederatedClaims = true and remote claims = [emails:{"business":null,"personal":null,"preferred":"xyz@gmail.com","account":"xyz@gmail.com"},gender:null,name:,last_name:,id:048ea1532ffb8000,locale:en_US,first_name:,

我只是想知道如何将电子邮件映射到本地声明URI http://wso2.org/claims/emailaddress,因为远程声明包含嵌套标记(电子邮件:{business:...,personal:...})。

由于

1 个答案:

答案 0 :(得分:2)

由于远程声明包含嵌套标记,因此必须扩展DefaultClaimHandler并编写声明处理程序以支持嵌套标记。

您可以在

中配置新的声明hanlder

IS_HOME / repository / conf / identity / application-authentication.xml

(在'ApplicationAuthentication.Extensions.ClaimHandler'元素中。)

<ClaimHandler>com.wso2.sample.claim.handler.CustomClaimHandler</ClaimHandler>

感谢
Isura