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

Extend and document the profile object #301

Merged
merged 1 commit into from
Sep 30, 2018

Conversation

cjbarth
Copy link
Collaborator

@cjbarth cjbarth commented Sep 14, 2018

This relates to the discussion in #278 .

@cjbarth
Copy link
Collaborator Author

cjbarth commented Sep 25, 2018

@markstos I've squashed these commits.

@cjbarth
Copy link
Collaborator Author

cjbarth commented Sep 25, 2018

This may also address #256

ID?: string;
}
```

#### Config parameter details:
Copy link
Contributor

Choose a reason for hiding this comment

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

@cjbarth Thanks for this. Generally it looks good.

To check if this was correct, I reviewed the result of grep profile lib/passport-saml/saml.js. The results show that all these fields are present. Some recommended changes:

  • briefly document both getAssertionXml() and getAssertion()
  • From reading this code, it appears arbitrary name/value pairs of attributes may also be returned: https://github.com/bergie/passport-saml/blob/master/lib/passport-saml/saml.js#L851 this should also be documented.
  • The exceptional handling of "mail" and "email" mentioned above is perhaps also worth mentioning. The code shows that "mail" defaults to a particular field identified by OID, and that "email" will default to "mail" if not present. It's not clear to me why both exist, but with slightly different meanings.
  • squash commits into one

Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@markstos I believe I've addressed your concerns here. Please let me know if there is more to do.

@markstos
Copy link
Contributor

@cjbarth Everything looks great now. Merging.

@markstos markstos merged commit 4943e28 into node-saml:master Sep 30, 2018
@ray2k
Copy link

ray2k commented Oct 15, 2018

When might the npm package get updated to include this (specifically, getAssertion)? I installed latest but get 0.35.0 which according to readme is current latest and greatest, and only the getAssertionXml is there.

@markstos
Copy link
Contributor

@ray2k This week, I think. We are packaging some breaking changes in a bundle, so trying go about it carefully. Install from Github if you want, expecting it will be forward compatible. NPM's package.json has a syntax for that.

@cjbarth cjbarth deleted the profile-data branch April 29, 2019 12:44
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

3 participants