Skip to content

do not assert both subject-id and pairwise-id #987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

johanlundberg
Copy link
Contributor

Description

do not assert both subject-id and pairwise-id
default to pairwise-id if both are requested and available

The feature or problem addressed by this PR

When a SP requests subject-id any there pysaml2 will add both subject-id and pairwise-id to the list of required attributes which means that both will be released if they are available.

What your changes do and why you chose this solution

This PR will check if both subject-id and pairwise-id is in available attributes and default to only release pairwise-id if both are. This check only runs if the urn:oasis:names:tc:SAML:profiles:subject-id:req is set to any.

Checklist

  • Checked that no other issues or pull requests exist for the same issue/change
  • Added tests covering the new functionality
  • Updated documentation OR the change is too minor to be documented
  • Updated CHANGELOG.md OR changes are insignificant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant