• Neena Bhoir
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I have a requirement where an external IdP posts SAML to my SF org.  The IdP uses both Recipient URL and a Relay State URL.
Recipient URL points to my SF org login page, where as Relay State URL points to a deeplink within the org, which is a VF page.
The SAML assert from IdP also has some additional SAML attributes with some data like User's address etc.

I configured  SF as service provider and getting successful SSO into my SF org directly upto the VF page defined by the relay state URL.
This means, when the user clicks a link in IdP page, due to this SSO, user directly lands in the deeplinked VF page in my org. 

Now the issue is how to read the SAML attributes from this VF page? Idea is to get/read the SAML attributes though a controller and display that data on the page for the user.  For example, I need to read the 'address' SAML attribute to get its value.  I could n't find any SF documentation about how to do this, but I am sure many others must have implemented similar requirement already.

Any help is greatly appreciated.