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

Validate issuer on logout requests/responses if configured #314

Merged
merged 1 commit into from Oct 16, 2018

Conversation

stavros-wb
Copy link
Contributor

I've added documentation on samlIssuer and also made its validation optional (just as InResponseTo). This should actually be a part of #277

@stavros-wb
Copy link
Contributor Author

@markstos can you take a look?

README.md Outdated
@@ -125,6 +125,8 @@ type Profile = {
* `validateInResponseTo`: if truthy, then InResponseTo will be validated from incoming SAML responses
* `requestIdExpirationPeriodMs`: Defines the expiration time when a Request ID generated for a SAML request will not be valid if seen in a SAML response in the `InResponseTo` field. Default is 8 hours.
* `cacheProvider`: Defines the implementation for a cache provider used to store request Ids generated in SAML requests as part of `InResponseTo` validation. Default is a built-in in-memory cache provider. For details see the 'Cache Provider' section.
* **Issuer Validation**
* `samlIssuer`: if provided, then the IdP issuer will be validated for incoming Logout Requests/Responses
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it could be helpful to add an example at the end of this line that shows an example expected value for samlIssuer. The name here is also confusing, since we have both issuer and samlIssuer.

As I understand issuer is our name-- the name of the Service Provider, while samlssuer is the expected name of the IdP that we validate against. Is that correct? Perhaps 'responseIssuer` would be clearer?

Including as "saml" as a prefix does not help much at all, because the entire module has to do with SAML.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, that's a valid point, but responseIssuer isn't really better, since this is validated in requests as well.

What do you think for idpIssuer?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@markstos markstos merged commit 09f0a4e into node-saml:master Oct 16, 2018
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.

None yet

2 participants