# IFrame Authentication Fail

**URL:** <https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112>\
**Category:** Help / Off-topic\
**Created:** [August 12, 2016, 4:20pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112 "2016-08-12T16:20:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThatGamerBlue](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/thatgamerblue/32/1576_2.png) [@ThatGamerBlue](https://discuss.dev.twitch.com/u/ThatGamerBlue)\
**Post date:** [August 12, 2016, 4:20pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/1 "2016-08-12T16:20:49Z")

</div>

I’m creating a website for my friend, but chat embed doesn’t work, the recieving messages work, but I can’t sign into the chat, I put in my username and password -\> it says “Oops! We encountered an unexpected error logging you in. Please try again.” -\> i login again, and it redirects me to the main twitch site and says “Oops! We encountered an unexpected error logging you in. Please try again.” again, then I sign in again and it works, but when I go back to my website I’m not signed in. This repeats indefinitely.

`<iframe id="chat" src="https://twitch.tv/mcgamesdotnet/chat" style="overflow: hidden; height: 75%; width: 29%; position: absolute; float: right; right: 5px;"> <p>Failed to load chat from twitch.tv</p> </iframe>`

is my html code.

---

<div class="post-metadata">

**Author:** ![Dev](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dev/32/1691_2.png) [@Dev](https://discuss.dev.twitch.com/u/Dev)\
**Post date:** [August 12, 2016, 4:30pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/2 "2016-08-12T16:30:32Z")

</div>

What browser are you getting this error in?

---

<div class="post-metadata">

**Author:** ![ThatGamerBlue](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/thatgamerblue/32/1576_2.png) [@ThatGamerBlue](https://discuss.dev.twitch.com/u/ThatGamerBlue)\
**Post date:** [August 12, 2016, 4:33pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/3 "2016-08-12T16:33:10Z")

</div>

firefox

edit: its working in chrome… hmmm

---

<div class="post-metadata">

**Author:** ![DallasNChains](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dallasnchains/32/1608_2.png) [@DallasNChains](https://discuss.dev.twitch.com/u/DallasNChains)\
**Post date:** [August 12, 2016, 4:42pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/4 "2016-08-12T16:42:33Z")

</div>

I can’t reproduce this in Firefox 45.2.0 on OS X. Which version and OS?

---

<div class="post-metadata">

**Author:** ![ThatGamerBlue](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/thatgamerblue/32/1576_2.png) [@ThatGamerBlue](https://discuss.dev.twitch.com/u/ThatGamerBlue)\
**Post date:** [August 12, 2016, 4:43pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/5 "2016-08-12T16:43:45Z")

</div>

Firefox version 47.0 OS Windows 7

EDIT: link to my site: [http://www.mcgamesdot.net](http://www.mcgamesdot.net) if you want the envoronment i’m reproducing it in

---

<div class="post-metadata">

**Author:** ![Dev](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dev/32/1691_2.png) [@Dev](https://discuss.dev.twitch.com/u/Dev)\
**Post date:** [August 12, 2016, 4:53pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/6 "2016-08-12T16:53:24Z")

</div>

I got it working in 3 different Firefox versions on both Windows 10 and Ubuntu.

---

<div class="post-metadata">

**Author:** ![DallasNChains](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dallasnchains/32/1608_2.png) [@DallasNChains](https://discuss.dev.twitch.com/u/DallasNChains)\
**Post date:** [August 12, 2016, 5:46pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/7 "2016-08-12T17:46:16Z")

</div>

I just used your site and was able to login. Which login are you using? When you click chat?

---

<div class="post-metadata">

**Author:** ![ThatGamerBlue](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/thatgamerblue/32/1576_2.png) [@ThatGamerBlue](https://discuss.dev.twitch.com/u/ThatGamerBlue)\
**Post date:** [August 12, 2016, 5:46pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/8 "2016-08-12T17:46:46Z")

</div>

yeah

---

<div class="post-metadata">

**Author:** ![ThatGamerBlue](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/thatgamerblue/32/1576_2.png) [@ThatGamerBlue](https://discuss.dev.twitch.com/u/ThatGamerBlue)\
**Post date:** [August 12, 2016, 5:47pm UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/9 "2016-08-12T17:47:29Z")

</div>

i think its just my browser, it’s working for lots of others, /closed

---

<div class="post-metadata">

**Author:** ![3ventic](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/3ventic/32/298_2.png) [@3ventic](https://discuss.dev.twitch.com/u/3ventic)\
**Post date:** [August 13, 2016, 6:35am UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/10 "2016-08-13T06:35:20Z")

</div>

I often have this problem with Edge when trying to authorize 3rd party apps like moobot or cbenni’s logviewer. If I’m not logged in, it gives me the unknown error. If I am, I don’t remember how it fails, but it does. It seems browser-specific, but it doesn’t make much sense.

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [August 23, 2016, 6:35am UTC](https://discuss.dev.twitch.com/t/iframe-authentication-fail/7112/11 "2016-08-23T06:35:24Z")

</div>

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