ComponentSpace

Forums



ComponentSpace 2.2.8.8 Unsupported key encryption


ComponentSpace 2.2.8.8 Unsupported key encryption

Author
Message
Matt Olson
Matt Olson
Junior Member
Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)

Group: Forum Members
Posts: 22, Visits: 115
Hello,
Received the following error while trying to receive an assertion from an IdP:

Unsupported key encryption method http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 Stack:  at ComponentSpace.SAML2.InternalSAMLServiceProvider.DecryptSAMLAssertion(Object samlAssertion) in C:\Sandboxes\ComponentSpace\SAMLv20\Library\InternalSAMLServiceProvider.cs:line 411
 at ComponentSpace.SAML2.InternalSAMLServiceProvider.GetSAMLAssertion(SAMLResponse samlResponse, XmlElement samlResponseElement) in C:\Sandboxes\ComponentSpace\SAMLv20\Library\InternalSAMLServiceProvider.cs:line 474
 at ComponentSpace.SAML2.InternalSAMLServiceProvider.ProcessSAMLResponse(XmlElement samlResponseElement, Boolean& isInResponseTo, String& authnContext, String& userName, SAMLAttribute[]& attributes) in C:\Sandboxes\ComponentSpace\SAMLv20\Library\InternalSAMLServiceProvider.cs:line 806
 at ComponentSpace.SAML2.InternalSAMLServiceProvider.ReceiveSSO(HttpRequest httpRequest, Boolean& isInResponseTo, String& partnerIdP, String& authnContext, String& userName, SAMLAttribute[]& attributes, String& relayState) in C:\Sandboxes\ComponentSpace\SAMLv20\Library\InternalSAMLServiceProvider.cs:line 1267

Is this encryption not supported by this version of the library?  Do we need to upgrade?  The IdP has no way to change the encryption method being used.
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
Hi Matt,

http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 is an XML signature method rather than an XML encryption method.

The supported key encryption methods are:

http://www.w3.org/2001/04/xmlenc#rsa-1_5
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p

Please enable SAML trace and send the generated log file as  an email attachment to [email protected].

https://www.componentspace.com/Forums/17/Enabing-SAML-Trace

I'd like to see exactly what the IdP is sending.

Also, please confirm the version you're using. Did you mean v2.2.0.8?

Version 2.2.* is over 12 years old.

You'll find the release notes at:

https://www.componentspace.com/forums/8576/Release-Notes


Regards
ComponentSpace Development
Matt Olson
Matt Olson
Junior Member
Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)Junior Member (61 reputation)

Group: Forum Members
Posts: 22, Visits: 115
ComponentSpace - 12/21/2022
Hi Matt,

http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 is an XML signature method rather than an XML encryption method.

The supported key encryption methods are:

http://www.w3.org/2001/04/xmlenc#rsa-1_5
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p

Please enable SAML trace and send the generated log file as  an email attachment to [email protected].

https://www.componentspace.com/Forums/17/Enabing-SAML-Trace

I'd like to see exactly what the IdP is sending.

Also, please confirm the version you're using. Did you mean v2.2.0.8?

Version 2.2.* is over 12 years old.

You'll find the release notes at:

https://www.componentspace.com/forums/8576/Release-Notes

It must be 2.8.8.  The sample project says 2.2.8.8 in it, though.  From 2018.  I will try getting the log tomorrow.

Thanks!
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
What I thought you meant was the version number of the SAML DLL rather than a sample project.

Anyway, the log will have the details.

Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 3 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search