You need to sign in to do that
Don't have an account?
Ned 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.
<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.