KeyInfo missing in AuthnRequest when using OpenSaml4AuthenticationRequestResolver #11354
Labels
in: saml2
An issue in SAML2 modules
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Describe the bug
When switching from the (deprecated)
DefaultSaml2AuthenticationRequestContextResolver
andOpenSaml4AuthenticationRequestFactory
toOpenSaml4AuthenticationRequestResolver
, theAuthnRequest
's signature no longer contains aKeyInfo
element.To Reproduce
OpenSaml4AuthenticationRequestResolver
(e.g. by adding it as a Spring Bean)Expected behavior
The
AuthnRequest
signature contains aKeyInfo
when usingOpenSaml4AuthenticationRequestResolver
.Possible source: In
org.springframework.security.saml2.provider.service.web.authentication.OpenSamlSigningUtils
, noNamedKeyInfoGeneratorManager
is configured in theSignatureSigningConfiguration
. This is different from the twoOpenSamlSigningUtils
in other packages.The text was updated successfully, but these errors were encountered: