Identifying SP entity ID on the fly While on attribute resolver
Corey Scholefield
coreys at uvic.ca
Fri Jul 22 14:14:23 EDT 2016
I think you are looking for something like;
sp = requestContext.getInboundMessageIssuer();
if (sp == “https://sp.host.domain/path/stuff”) {
}
Corey S.
From: users <users-bounces at shibboleth.net> on behalf of "Rayamajhi, Susil" <Susil.Rayamajhi at ucsf.edu>
Reply-To: Shib Users <users at shibboleth.net>
Date: Friday, July 22, 2016 at 10:55 AM
To: Shib Users <users at shibboleth.net>
Subject: Identifying SP entity ID on the fly While on attribute resolver
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/81eda092/attachment.html>
More information about the users
mailing list