Identifying SP entity ID on the fly While on attribute resolver
Rayamajhi, Susil
Susil.Rayamajhi at ucsf.edu
Fri Jul 22 13:55:39 EDT 2016
Hi
Is there a way to identify SP entity ID when java script file associated with attribute ( defined in attribute resolver xml file ) get executed? The reason is I am curious to know SP entity id on the fly and might add some logic to the JS file. We are using Shib 2.3.8.
Something like this;
<ad:Script>
<![CDATA[
currentSPEntityId = Java.type(“made-up-object-that-hold-current-sp-ref");
//
// Not sure if “made-up-object-that-hold-current-sp-ref” exists for this ?
//
var localpart = "";
if (currentSPEntityId==‘abc') {
.. Do this
} else {
.. Do that
}
]]>
</ad:Script>
Thanks
Susil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160722/549b03b0/attachment.html>
More information about the users
mailing list