[JIRA] Resolved: (SSPCPP-361) Session handler with better parseable and accessable (X)HTML code
Scott Cantor (JIRA)
noreply at shibboleth.net
Fri May 11 21:03:03 BST 2012
[ https://issues.shibboleth.net/jira/browse/SSPCPP-361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Cantor resolved SSPCPP-361.
---------------------------------
Resolution: Fixed
http://svn.shibboleth.net/view/cpp-sp?rev=3657&view=rev
> Session handler with better parseable and accessable (X)HTML code
> -----------------------------------------------------------------
>
> Key: SSPCPP-361
> URL: https://issues.shibboleth.net/jira/browse/SSPCPP-361
> Project: Shibboleth SP - C++
> Issue Type: Improvement
> Components: Other
> Reporter: Lukas Haemmerle
> Assignee: Scott Cantor
> Priority: Minor
> Fix For: 2.5
>
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> There are more and more JavaScript applications that would benefit from accessing the user's Shibboleth attributes. Thanks to the Session handler and the showAttributeValues="true" setting, this is already possible. However, when accessing the Shibboleth Session handler via /Shibboleth.sso/Session the returned output is valid html (even XHTML I think) but it is not very convenient to parse and access because the format looks like this:
> <u>Attributes</u>
> <strong>Shib-EP-Affiliation</strong>: staff
> <strong>Shib-EP-Entitlement</strong>: https://aai-demo-idp.switch.ch/idp/shibboleth;https://aai-rr.switch.ch;urn:geant:edugain:entitlement:eduroam:TTS;https://gamalama.switch.ch/idp/shibboleth;urn:mace:rediris.es:entitlement:wiki:tfemc2;urn:mace:rediris.es:entitlement:wiki:jra5;urn:mace:dir:entitlement:common-lib-terms
> <strong>Shib-InetOrgPerson-givenName</strong>: Lukas
> <strong>Shib-InetOrgPerson-mail</strong>: lukas.haemmerle at switch.ch
> ...
>
> It would be more convenient to have attributes and values more nested and better accessible, e.g. something like:
> <div id="attributes">
> <u>Attributes</u>
> <dl>
> <dt id="Shib-EP-Affiliation">Shib-EP-Affiliation</dt><dd>staff</dd>
> <dt id="Shib-EP-Entitlement">Shib-EP-Entitlement</dt><dd>https://aai-demo-idp.switch.ch/idp/shibboleth;https://aai-rr.switch.ch;urn:geant:edugain:entitlement:eduroam:TTS;https://gamalama.switch.ch/idp/shibboleth;urn:mace:rediris.es:entitlement:wiki:tfemc2;urn:mace:rediris.es:entitlement:wiki:jra5;urn:mace:dir:entitlement:common-lib-terms</dd>
> ...
> </dl>
> It may be that some people are already parsing the output of the current session handler. Therefore, changing the output (without introducing a new config option) could break their parsing.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list