How to pass Sp entityId from Idp to Shibboleth Sp?

Abdul Waheed waheedtechblog at
Mon Dec 14 12:47:49 EST 2015

Thanks Scott, Please check my comment inlined.

On Mon, Dec 14, 2015 at 8:33 PM, Cantor, Scott <cantor.2 at> wrote:

> On 12/14/15, 9:52 AM, "users on behalf of Abdul Waheed" <
> users-bounces at on behalf of waheedtechblog at> wrote:
> >
> >#1: I have some mapping based on Shibboleth entity Id into my database
> table, I am able to connect to database using RelationalDatabase
> DataConnector but to get value from DB I need entityId.
> The documentation covers the information made available to the templates
> for building SQL statements.
Yes, I have already added Connector to talk to MySql DB. I have written one
query to fetch one column from db based on entityId like Select * from
TABLE where entityId="ENTITYID_OF_SHIB", So i don't know how to get

> >#2. Here, I want to understand both part:
> >   I) I can see entityId as Audience but I am not sure how to retrieve it
> as SP side.?
> That doesn't make any sense. That *is* the SP. If it doesn't know its own
> name, the idP isn't the one to be telling it.
Yes, You are right,  That *is* the SP.Sorry for the confusion. Let me
clarify question:
I have deployed one application which is protected by Shib and after
authentication I am passing uid as Shib header to my application,I am
passing uid as assertion from IdP and mapping it in attibute_map.xml file
at SP side.
So now my requirement is to pass Shib entityId,Idp entityId along with uid.
So I need all these three paramenters in my application so that I can
perform some operation.

> > Could you point me to some link or some references so that I can
> retrieve SP entityId as well as Idp entityId ?
> The built-in variables populated by the SP include the IdP's entityID, as
> documented.
I am new to Shibboleth WORLD, So I am not sure how to do it. A right link
would be more helpful for me.

> -- Scott
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list