SP's entityId available to script?
Mizushima, Marcus
mmizushima at calstate.edu
Thu Sep 15 17:02:32 BST 2011
There's a getPeetEntityId method that will return the entity ID of the SP:
requestContext.getPeerEntityId();
-----Original Message-----
From: users-bounces at shibboleth.net [mailto:users-bounces at shibboleth.net] On Behalf Of Stefano Zanmarchi
Sent: Thursday, September 15, 2011 1:47 AM
To: Shib Users
Subject: Re: SP's entityId available to script?
Thank you Scott,
I have checked the AttributeRequestContext interface and found no method, the most obvious seems the ProfileRequestContext, but
logger.info(requestContext.getRelyingPartyConfiguration().getRelyingPartyId());
just outputs "default".
(whereas getProviderId() correctly returns my IdP's entityId, not very useful for my needs)
On Wed, Sep 14, 2011 at 8:46 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:
> On 9/14/11 10:52 AM, "Stefano Zanmarchi" <zanmarchi at gmail.com> wrote:
>>I'd like to write a script to produce an attribute value dependent on
>>the SP that has initiated the session.
>>Is it possible to have the SP's entityId available to a script attribute?
>
> Yes, the attribute resolution context has the identity in one of its
> properties. It's either the PeerEntityId or RelyingPartyId, I can't
> recall which.
>
> -- Scott
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list