Skip to content

Implement the ability to disable the NameID check #11463

Closed
@EgorBratuhin

Description

@EgorBratuhin

The protocol states that the Subject is optional.

<element name="Assertion" type="saml:AssertionType"/>
<complexType name="AssertionType">
  <sequence>
    <element ref="saml:Issuer"/>
    <element ref="ds:Signature" minOccurs="0"/>
    <element ref="saml:Subject" minOccurs="0"/>

But there is always a check for the existence of a NameID !hasName(firstAssertion) and I get the error if there is no Subject.
org.springframework.security.saml2.provider.service.authentication.OpenSamlAuthenticationProvider#process
org.springframework.security.saml2.core.Saml2ErrorCodes#SUBJECT_NOT_FOUND
Is it possible to implement disabling the check for the presence of a NameID?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions