Skip to content
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

Check for audience #138

Closed
wants to merge 1 commit into from
Closed

Check for audience #138

wants to merge 1 commit into from

Conversation

sonnymai
Copy link

There doesn't seem to be any checks for the audience attribute. This would allow users using the same IDP to authenticate into service provider B if they had a valid token for service provider A (assuming both service providers use the same IDP).

Hopefully this logic is correct, I can add tests if this is verified.

@pdspicer
Copy link
Contributor

pdspicer commented Mar 30, 2017

You are correct, this check is currently missing. I would contest based on the SAML specification (saml-profiles-2.0-os, section 4.1.4.2) that the audience condition validation should REQUIRE the presence of an <Audience> element in at least one assertion where a <Subject> element with a <SubjectConfirmationData> condition is also present, and then further check that it contains the SP entityID.

@markstos
Copy link
Contributor

This feature is still of interest if someone wants to pick it up.

@benjamine
Copy link

I can send a version with the suggestion above, I'm interested in getting this upstream.

@benjamine
Copy link

@markstos I opened #253 picking this up, made AudienceRestriction required when options.audience is specified, and added unit tests.

@markstos
Copy link
Contributor

markstos commented Jan 3, 2018

Closing this, as PR #253 was merged. Leave a comment there if you find any problem with it.

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.

5 participants