Waheed
Waheed

Reputation: 1925

How to pass Sp entityId from Idp to Shibboleth Sp?

I am not sure but is it possible to pass entityId in AuthnStatement to Shibboleth SP? I am already sending uid in response AuthnStatement.

Suppose a request is coming to Idp from SP having entityId as https://sp.example.com/Shibboleth. After authentication, Idp should post uid as well as entityId to SP.

Let me know if this is possible or is there any way to get entityId attribute in IdP attribute-resolver.xml file.

Thanks in Advance.

Upvotes: 0

Views: 524

Answers (1)

Waheed
Waheed

Reputation: 1925

Now, I know the answer and updating it so that It can help other as well.

We don't have to worry about Idp URL at SP Side as once the Shibboleth session gets established, It stores all the information like Shibboleth Idp, Authnmethod, and other released parameters into the session.

Once you hit your protected resources, it set all those attributes into headers and can be easily fetched in your application.

Eg: get Idp URL

request.getHeader("Shib-Identity-Provider")

Check here for the list of headers.

Upvotes: 1

Related Questions