question

JohnsenThomas-2566 avatar image
0 Votes"
JohnsenThomas-2566 asked ·

SP Initiated SSO with Azure AD and Relay State iFrame Workaround

We have successfully set up our Azure AD to interact with a SP initiated SSO that sends a Saml Token to the vendor for authentication allowing us to view their app. However, we need to be able to iFrame this vendor web app and I cannot find any clear cut documentation on how to implement a solution.

The main issue is that the login page for Microsoft cannot be placed in an iFrame. I see suggestions on opening that response in a popup, then redirecting back to the frame, but no clear examples or docs regarding how to manage each response or do this from client or server code.

When the url is input into a browser, it simply works, so there is no code in place that does anything special at the moment. So my question is:

  • What is the documented, microsoft recommended way, with a basic example, of how to workaround the login page not being allowed in an iframe when utilizing Azure AD for an SP initiated SSO w/Saml ?

azure-ad-saml-ssoazure-ad-msalazure-ad-app-development
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JohnsenThomas-2566
Thank you for your post and I apologize for the delayed response!

Our single page app documentation, has Sign-in with a pop-up window or Sign-in with redirect articles that might help with your issue. However, I wasn't able to find any SAML related documentation for pop-up windows, or how to bypass the iFrame restriction. Lastly, within B2C I was able to find a doc which talks to iFrame and the Embedded sign-in experience.



I hope this helps! If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.

0 Votes 0 ·

@JohnsenThomas-2566
I just wanted to check in and see if you had any other questions or if you were able to resolve this issue?

0 Votes 0 ·

0 Answers