Skip to content

SAML2 Provider SubjectConfirmation validation failure #7514

@blucas

Description

@blucas

Summary

When validating the assertion, if the IdP has provided a SubjectConfirmation which matches the Bearer method, the validation will fail. This is due to the fact that the OpenSamlAuthenticationProvider does not set the necessary parameter

SAML2AssertionValidationParameters.SC_VALID_ADDRESSES

This parameter is used to obtain valid address and compare it to what has been provided in the assertion. But as this parameter is not set this code block fails.

Actual Behavior

SubjectConfirmation validation fails.

Expected Behavior

SubjectConfirmation validation should succeed.

Configuration

Version

spring-security-5.2.0
spring-boot-2.2.0-RC1

Sample

@fhanik FYI.

Metadata

Metadata

Assignees

Labels

in: saml2An issue in SAML2 modulestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions