-
Notifications
You must be signed in to change notification settings - Fork 475
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
Get session duration from SAML assertion #278
Conversation
@stavros-wb Could you say more about this change? As I read it, it's taking the session duration detected in a SAML response and saving it to a profile. I checked out the README, it appears that currently there is no where that we define what is returned in a the Maintaining this module is now a community effort. I'm fellow user like yourself that's helping as a I can, but help review and merge completed PRs. Thanks. |
There are actually a whole bunch of things like this that could be added to the generated profile object. For example there are Having said that, anyone can get any property from the XML they want by doing parsing |
@cjbarth Hmm, good question. We can either:
I'm not that familiar with what's typically returned and what the range of edge cases are. I think from a user's perspective, it's likely more convenient to have the fields already present, and let this module completely abstract away the XML and SAML protocol. So without having looked what some examples of I think it's work mocking up some examples of both approaches and comparing, though. @cjbarth What do you think is the best approach here? |
@markstos The problem with option 2 is that it wouldn't be much different from calling I feel like there is some research that could be done to figure out what the common, or expected, SAML return values are and then build a more complete stable I found the schema, which seems a little hard to grok: http://docs.oasis-open.org/security/saml/v2.0/saml-schema-assertion-2.0.xsd Sadly the schema is filled with |
I work with dozens of SAML IdPs and typically all that is passed around is the first name, last name and email. An "employee Id" is the next most popular field in my anecdotal experience, but far less popular. There lack of consistency in what the "employee ID" field is named, but the SAML standard term is "NameID". Commonly the unique ID identifier is the email address. Someone who works at Okta, OneLogin, or similar could provide valuable prospective here. |
I'm in favour of option 2, but add everything in a property
@markstos I agree we should document this. I would use it, had I known it existed |
@stavros-wb When you say |
@markstos JavaScript object |
@markstos @stavros-wb I've created a PR (#301) that follows the spirit of this discussion. Please have a look. |
@stavros-wb Does #301 address your interest here? It's a more a general solution to the same issue. The one difference I see is that this PR adds profile.getAssertion().SessionNotOnOrAfter |
No description provided.