我已经使用组件空间 SAML2.0 设置了 IDP
服务提供者也在组件空间 SAML2.0
证书算法:RSASHA256
我们没有服务提供商证书详细信息,因为我们发送没有 AuthRequest 的 SAMLResponse
<IdentityProvider Name="http://localhost/ExampleIdentityProvider"
Description="Example Identity Provider"
LocalCertificateFile="Certificates\idp.pfx"
LocalCertificatePassword="password"/>
<PartnerServiceProviders>
<!-- Web forms example -->
<PartnerServiceProvider Name="abc"
Description="Example Service Provider"
WantAuthnRequestSigned="false"
SignSAMLResponse="true"
SignAssertion="false"
EncryptAssertion="false"
AssertionConsumerServiceUrl="https://abc.xyz/sso/saml/servicerequest"
SingleLogoutServiceUrl="http://abc.xyz/sso/saml"
PartnerCertificateFile="Certificates\sp.cer"/>
我在我们这边发送断言时收到这些错误。
CryptographicException:指定的算法无效。
SAMLSignatureException:无法生成 XML 签名。