我试图在一个ITfoxtec Web ( ASP.NET )应用程序中实现ASP.NET SAML2.0。
通常的ASP.NET MVC实现使用以下语句:
binding.ReadSamlResponse(Request.ToGenericHttpRequest(), saml2AuthnResponse);
但是MVC Request在Web中是不可用的。
在VB中,我尝试了一些代码,例如
Dim request As New ITfoxtec.Identity.Saml2.Http.HttpRequest
request.Method = "GET"
request.Que
我正在尝试让我的ASP.NET MVC应用程序为多个IdPs提供单点登录,我想知道是否可以使用ITfoxtec.SAML2库来支持这个场景。 我有许多不同的客户,其中几个希望与我的服务进行SSO集成。每个客户端都有不同的子域(例如business1.myapp.com、business2.myapp.com等)我将需要使用他们名字的独特部分来查找他们的元数据,并产生一个将与他们对话的配置。 我看到的示例代码似乎支持更传统的one IdP to one SP场景。 此外,如果有人知道非核心的ASP.NET MVC示例应用程序,我将非常感激知道在哪里可以找到它。
我正在使用ITfoxtec SAML2库,并遵循站点中的示例,我看到它们有一个扩展方法BindConfig,但是,在我使用这个库时,我得到的错误IServicesCollection不包含我正在使用的BindConfig的定义
使用ITfoxtec.Identity.Saml2;
使用ITfoxtec.Identity.Saml2.MvcCore;
使用ITfoxtec.Identity.Saml2.MvcCore.Configuration;
使用ITfoxtec.Identity.Saml2.Schemas.Metadata;
使用ITfoxtec.Identity. using 2.
s
我正在尝试使用ITFoxtec和Auth0作为IdP。但是在ACS上,我得到了以下错误:
ITfoxtec.Identity.Saml2.Cryptography.InvalidSignatureException: Signature is invalid.
at ITfoxtec.Identity.Saml2.Saml2Request.ValidateXmlSignature(SignatureValidation documentValidationResult) in C:\Documents\Repos\ITfoxtec.Identity.Saml2-master\ITfoxt
我有两个web应用程序,它们之间有一个SAML2 SSO。一个方向很好。但是其他的结果导致了这个错误:
ID4037:验证签名所需的密钥无法从以下安全密钥标识符中解析
使用此堆栈跟踪:
在System.IdentityModel.EnvelopedSignatureReader.ResolveSigningCredentials() at System.IdentityModel.EnvelopedSignatureReader.OnEndOfRootElement() at System.IdentityModel.EnvelopedSignatureReader.Read() at S
我使用ITfoxtec Identity.Saml2.MvcCore for .net核心v3.1作为使用Ping标识的单一标志。
超出密钥长度限制2048。在Microsoft.AspNetCore.WebUtilities.FormPipeReader.ThrowKeyTooLargeException()的Microsoft.AspNetCore.WebUtilities.FormPipeReader.ParseValuesSlow(ReadOnlySequence1& buffer, KeyValueAccumulator& accumulator, Boolean i
我实现了一个与丹麦Unilogin IDP集成的SAML服务提供商。我遵循以下示例:当执行时(在Unilogin测试环境中),我得到以下异常:
ITfoxtec.Identity.Saml2.Cryptography.InvalidSignatureException: at ITfoxtec.Identity.Saml2.Saml2Request.ValidateXmlSignature (ITfoxtec.Identity.Saml2,Version=4.8.0.0,Culture=neutral,PublicKeyToken=2dd6b1fbf7645f92) at ITfoxtec.I
我正在使用ITfoxtec.Identity.Saml2.Mvc版本4.7.1、.Net框架版本4.7.2和IDp的Duo。
我已经尝试过了,当我使用这个示例时,它返回一个状态为Responder的Saml2AuthnResponse。
我还尝试将Format添加到NameID中,如下所示。我已经确认该格式与Duo中的设置相匹配。
var config = new Saml2AuthnRequest(IdentityConfig.Saml2Configuration)
{
Subject = new Subject { NameID = new NameID {
我正在编写一个SAML2服务提供商/依赖方。我的IdP以加密形式(EncryptedAssertion元素)返回断言。ITfoxtec.Identity.Saml2是否支持此断言解密方案?我得到了这个异常: ITfoxtec.Identity.Saml2.Saml2RequestException: There is not exactly one Assertion element.
at ITfoxtec.Identity.Saml2.Saml2AuthnResponse.GetAssertionElementReference()
at ITfoxtec.Identity.
我有一个小的测试应用程序,我已经成功地与Okta集成作为IdP。我还设置了AWS SSO作为IdP。当我将我的应用程序切换到使用AWS SSO时,我收到以下错误: ITfoxtec.Identity.Saml2.Cryptography.InvalidSignatureException: Signature is invalid.
at ITfoxtec.Identity.Saml2.Saml2Request.ValidateXmlSignature(SignatureValidation documentValidationResult)
at ITfoxtec.Identi