我对 nuget 示例中描述的功能和我的案例(特别是 core 和 Angular)中描述的功能有疑问。
我有一个带有 angular4 的前端,所有请求都通过那里。我用它重定向到 Idp 表格,他再次打电话给我,将断言传递给我。
如何使用 Angular 捕获 saml 响应,将其传递回 AssertionConsumerService 方法并获取声明?
Update:
我尝试将调用直接传递到后面,现在在恢复索赔时出现以下错误:
{“error”:“IDX13102:读取 Saml2SecurityToken 的“AuthnContext”时抛出异常。内部异常:“System.ArgumentException:IDX13300:“值”必须是绝对 Uri,为:“XXX”\r\n 在 Microsoft.IdentityModel C:\agent1\_work\109\s\src\Microsoft.IdentityModel.Tokens.Saml\Saml2\Saml2AuthenticationContext.cs 中的 .Tokens.Saml2.Saml2AuthenticationContext.set_ClassReference(Uri 值):Microsoft.IdentityModel 第 108 行\r\n C:\agent1\_work\109\s\src\Microsoft.IdentityModel.Tokens.Saml\Saml2\Saml2AuthenticationContext.cs 中的 .Tokens.Saml2.Saml2AuthenticationContext..ctor(Uri classReference、Uri statementsReference):第 77 行\r\n在 C:\agent1\_work\109\s\src\Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadAuthenticationContext(XmlDictionaryReader reader) 处,位于 C:\agent1\_work\109\s\src\Microsoft.IdentityModel.Tokens.Saml\Saml2\Saml2Serializer.cs:第 661 行。”}
有任何想法吗?
恐怕无法通过前端客户端传递响应,例如有角。
响应需要通过重定向或发布直接返回到 AssertionConsumerService 端点。在 AssertionConsumerService 端点接受 Authn 响应(SAML 2.0 令牌)后,您可以加载 Angular 客户端。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)