Make NameID emailAddress value assertion optional

Open
#408 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
php

Research direction

Start by inspecting the NameID implementation referenced in the issue and locate the assertion that requires the Subject NameID to be an email address. Check nearby tests and configuration patterns; done means callers can disable this assertion for non-email NameIDs while the current validation remains the default.

Written by the indexing model from the issue text.

Description

We just updated from v4 to v6 and some authentication failed. After digging around we found that the value of the Subject NameID isn't a valid email address in some cases. This isn't something we can ask the IdP to change.

From what we can see from other SAML2 libraries, it seems to be a common practice to be able to disable some assertions like this one.

https://github.com/simplesamlphp/saml2/blob/85b0530f5f358d8d4cc2f579e271465502516ccc/src/XML/saml/NameID.php#L55-L58

Dominant language
PHP
Stars
306
Forks
138
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from simplesamlphp/saml2

All issues in simplesamlphp/saml2

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.