# Seamlessly sign into another app in an iframe

**URL:** <https://devforum.okta.com/t/seamlessly-sign-into-another-app-in-an-iframe/3588>\
**Category:** OAuth/OIDC\
**Created:** [December 7, 2018, 5:59pm UTC](https://devforum.okta.com/t/seamlessly-sign-into-another-app-in-an-iframe/3588 "2018-12-07T17:59:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![susanayr](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@susanayr](https://devforum.okta.com/u/susanayr)\
**Post date:** [December 7, 2018, 5:59pm UTC](https://devforum.okta.com/t/seamlessly-sign-into-another-app-in-an-iframe/3588/1 "2018-12-07T17:59:14Z")

</div>

Hi,

```
  We developed OIDC sign in into OKTA in our app (app A). There is another app (app B) that uses SAML to sign into OKTA.
  We now have to display app B in an iframe in app A and cannot enable the flag "Allow iframe embedding" in our Okta org. Is there a way to avoid redirecting the user to the app B and redirecting back to app A? What would be the most elegant solution for the end user ?

```

Thanks

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [December 8, 2018, 6:01pm UTC](https://devforum.okta.com/t/seamlessly-sign-into-another-app-in-an-iframe/3588/2 "2018-12-08T18:01:55Z")

</div>

Can you please reformat your question and take it out of a `<pre>` tag so it’s easier to read?

---

<div class="post-metadata">

**Author:** ![SivaDesetti](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@SivaDesetti](https://devforum.okta.com/u/SivaDesetti)\
**Post date:** [December 12, 2018, 9:15pm UTC](https://devforum.okta.com/t/seamlessly-sign-into-another-app-in-an-iframe/3588/3 "2018-12-12T21:15:11Z")

</div>

Had same use case and it only worked upon enabling iFrame Embedding.  
Okta has enabled X-Frame-Option protection for all pages to protect against user interface redress attacks so I think you can consider this.

Thanks

---

<div class="post-metadata">

**Author:** ![susanayr](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@susanayr](https://devforum.okta.com/u/susanayr)\
**Post date:** [December 13, 2018, 12:10am UTC](https://devforum.okta.com/t/seamlessly-sign-into-another-app-in-an-iframe/3588/4 "2018-12-13T00:10:00Z")

</div>

Thanks for your reply

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 13, 2024, 12:13am UTC](https://devforum.okta.com/t/seamlessly-sign-into-another-app-in-an-iframe/3588/5 "2024-01-13T00:13:59Z")

</div>

Closed on January 13, 2024, 12:13am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
