# Problem with google auth using Chrome on iPad?

**URL:** https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442
**Category:** Bug
**Tags:** tablet
**Created:** [May 26, 2017, 3:50pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442 "2017-05-26T15:50:08Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 26, 2017, 3:50pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/1 "2017-05-26T15:50:08Z")

</div>

I tried to create an account on stonehearth and another site today with google. On both sites, after I authenticated I got a screen with

```
Authentication is complete. Close this window to continue.

```

[Stonehearth Discourse](https://discourse.stonehearth.net/auth/google_oauth2/callback) was the URL.

I had accounts on neither site, so perhaps that’s related. I tried to replicate on try, but chose to create an account rather than try to log in without one, and that worked just fine.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 26, 2017, 3:53pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/2 "2017-05-26T15:53:08Z")

</div>

@eviltrout I wonder if this is somehow related to your recent fix.

@pfaffman did you create the account on your mobile phone or on a desktop? What browser are you using?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 26, 2017, 4:11pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/3 "2017-05-26T16:11:34Z")

</div>

Chrome on iOS iPad mini, hence the lack of better description.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 26, 2017, 4:18pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/4 "2017-05-26T16:18:21Z")

</div>

@eviltrout this could be “full screen” login, cause really we should be using that on iPad (if we are now we should anyway)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 26, 2017, 5:49pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/5 "2017-05-26T17:49:22Z")

</div>

It’s an iPad mini, which I think few people use. I think that it sometimes gets treated as a desktop and sometimes a mobile, since it’s between those sizes.

When I returned to stonehearth on desktop, it properly redirected to get me to create the account.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 26, 2017, 5:50pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/6 "2017-05-26T17:50:23Z")

</div>

iPad mini and iPad maxi should always use full screen for auth, it just don’t work right on iOS otherwise.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [May 26, 2017, 6:40pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/7 "2017-05-26T18:40:54Z")

</div>

Do you know what your user agent is? If it’s iOS it should match `/iPad|iPhone|iPod/` and get the full screen login. I’m not sure what chrome uses but maybe it thinks you’re a desktop.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 26, 2017, 7:19pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/8 "2017-05-26T19:19:51Z")

</div>

```
Mozilla/5.0 (iPad; CPU OS 10_3_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/58.0.3029.113 Mobile/14E304 Safari/602.1

```

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [May 26, 2017, 7:23pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/9 "2017-05-26T19:23:20Z")

</div>

In that case I have no idea why you wouldn’t get the full screen login every time. Did you force it into desktop mode somehow?

edit: I did see [the detection line](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/pre-initializers/sniff-capabilities.js.es6#L28) makes sure `window.MSStream` is not present. Maybe Chrome on iOS fills that in?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 26, 2017, 7:26pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/10 "2017-05-26T19:26:42Z")

</div>

Chrome on iOS with **Request Desktop Site** feature [omits iPad from the user agent](https://developer.chrome.com/multidevice/user-agent#chrome_for_ios_user_agent).

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 27, 2017, 1:27pm UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/11 "2017-05-27T13:27:55Z")

</div>

I didn’t request desktop site.

I think this is not a very popular device. Would you like me do do anything else to help debug?

I think the problem exists only when you try to log in wth google and don’t already have an account.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 10, 2020, 2:17am UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/12 "2020-01-10T02:17:12Z")

</div>

This is totally fixed now, we stopped with all the popup windows for auth

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 10, 2020, 2:17am UTC](https://meta.discourse.org/t/problem-with-google-auth-using-chrome-on-ipad/63442/13 "2020-01-10T02:17:15Z")

</div>


