function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ned KraushaarNed Kraushaar 

Connected App using saml contained in an iframe - passing parameters from hosting page

Hello, I have a connected app using saml which is contained in an visualforce page iframe on a Case layout page.  I need to pass the case id to the connected app.  With a simple iframe this is straight forward  ...

<apex:iframe id="MyIFrame" src="https://mycustomapp.com/app/aid={!case.accountID} />

But since my connected app uses saml, my src attribute is the connected app startup page.  The startup page then redirects and does a post to my apps acl page posting the samlresponse.  I see how I can modify the saml response, adding custom parameters, by extending the Auth.ConnectedAppPlugin class.  My problem is that I need to add the case id of the currently viewed case and I don't know how to access the current case in this class.

Thanks for helping.