如何使用Kentor AuthService从saml2:Subject response XML节点访问saml2:NameID?
我在代码中找不到任何与XML的这一部分相关的东西。也许我漏掉了什么。
我不是在问Kentor IdP,我看到NameID是作为附加声明发送的,它被翻译为attribute,我通常问的是,IdP不一定要由Kentor提供支持,所以我不能相信我会将这个值作为属性传递。
所以,如果它被处理了,我在这里找不到它:https://github.com/KentorIT/authservices/tree/master/Kentor.AuthServices
一种选择是自己解析XML,但是如果已经实现了或者更好的解决方案,那就更好了。
发布于 2015-03-24 19:29:30
主题NameID被转换为类型为ClaimTypes.NameIdentifier (http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier)的声明。
它应该在创建的claims标识的claims集合中。
https://stackoverflow.com/questions/29216083
复制相似问题