Skip to content

KeyInfo missing in AuthnRequest when using OpenSaml4AuthenticationRequestResolver #11354

@chschu

Description

@chschu

Describe the bug
When switching from the (deprecated) DefaultSaml2AuthenticationRequestContextResolver and OpenSaml4AuthenticationRequestFactory to OpenSaml4AuthenticationRequestResolver, the AuthnRequest's signature no longer contains a KeyInfo element.

To Reproduce

  • configure an OpenSaml4AuthenticationRequestResolver (e.g. by adding it as a Spring Bean)
  • configure an X.509 signing credential
  • start a SAML authentication

Expected behavior
The AuthnRequest signature contains a KeyInfo when using OpenSaml4AuthenticationRequestResolver.

Possible source: In org.springframework.security.saml2.provider.service.web.authentication.OpenSamlSigningUtils, no NamedKeyInfoGeneratorManager is configured in the SignatureSigningConfiguration. This is different from the two OpenSamlSigningUtils in other packages.

Metadata

Metadata

Assignees

Labels

in: saml2An issue in SAML2 modulesstatus: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions