# Google not working as a login method

**URL:** https://meta.discourse.org/t/google-not-working-as-a-login-method/127576
**Category:** Bug
**Created:** [4 september 2019 om 07:16 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576 "2019-09-04T07:16:08Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [4 september 2019 om 07:16 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/1 "2019-09-04T07:16:08Z")

</div>

Hello,  
I have tried to login via google chrome which is the browser I always use and I get this \* authorization time out\*

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/e/9e75cc95761e2ef12d9a9f88acc882d94960200e.png)

Help appreciated

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 september 2019 om 10:58 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/2 "2019-09-04T10:58:39Z")

</div>

Do you mean here on meta? You can’t log in here on meta via Google?

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [4 september 2019 om 15:26 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/3 "2019-09-04T15:26:24Z")

</div>

Yes. I do. It only happens on some devices.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 september 2019 om 15:37 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/4 "2019-09-04T15:37:18Z")

</div>

What devices are those and what Os / browser?

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [4 september 2019 om 15:55 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/5 "2019-09-04T15:55:05Z")

</div>

Device: phone, does it on the occasion  
Computer

Browser is Google chrome.

It could be on my side. I’ll try to find a solution

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [5 september 2019 om 15:16 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/6 "2019-09-05T15:16:36Z")

</div>

Here is a link  
[https://meta.discourse.org/t/social-login-auth-failure-problems/127664](https://meta.discourse.org/t/social-login-auth-failure-problems/127664)

---

<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: [6 september 2019 om 18:40 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/7 "2019-09-06T18:40:06Z")

</div>

I’m getting this same error on [https://discourse.codinghorror.com/](https://discourse.codinghorror.com/).

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6 september 2019 om 19:08 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/8 "2019-09-06T19:08:44Z")

</div>

Hmm you’re right, I can repro this everywhere @eviltrout we need to urgently look at this.

---

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [5 september 2019 om 08:42 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/9 "2019-09-05T08:42:41Z")

</div>

Hello.

I am facing Social Login /auth/failure problems that described very clear in the following screenshots. I don’t know if these are bugs of the new Latest 2.4.0.beta3 or not. Does any-one have solutions to get rid of troubles? Many thanks in advanced!

[https://applehint.com/auth/failure?message=csrf\_detected&strategy=google\_oauth2](https://applehint.com/auth/failure?message=csrf_detected&strategy=google_oauth2)

 ![06%20PM](https://global.discourse-cdn.com/meta/original/3X/8/0/802cd8ed93e9d955cde23c85da5318075737a456.png)

[https://applehint.com/auth/failure?message=request\_error](https://applehint.com/auth/failure?message=request_error)

 ![39%20PM](https://global.discourse-cdn.com/meta/original/3X/2/e/2e064331f15d1eca788bf550f1f34b3e07925e9c.png)

---

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [5 september 2019 om 09:19 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/10 "2019-09-05T09:19:09Z")

</div>

Here is the error log:

```plaintext
> /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/logster-2.3.2/lib/logster/logger.rb:110:in `report_to_store'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/logster-2.3.2/lib/logster/logger.rb:101:in `add_with_opts'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/logster-2.3.2/lib/logster/logger.rb:52:in `add'
/usr/local/lib/ruby/2.6.0/logger.rb:543:in `error'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:163:in `log'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:486:in `fail!'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-oauth2-1.6.0/lib/omniauth/strategies/oauth2.rb:71:in `callback_phase'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:238:in `callback_call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:189:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:169:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:192:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/strategy.rb:169:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/omniauth-1.9.0/lib/omniauth/builder.rb:64:in `call'
/var/www/discourse/lib/middleware/omniauth_bypass_middleware.rb:47:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/tempfile_reaper.rb:15:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/conditional_get.rb:25:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'
/var/www/discourse/lib/content_security_policy/middleware.rb:12:in `call'
/var/www/discourse/lib/middleware/anonymous_cache.rb:272:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:232:in `context'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:226:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/cookies.rb:670:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:98:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/logster-2.3.2/lib/logster/middleware/reporter.rb:43:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/rack/logger.rb:38:in `call_app'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/rack/logger.rb:28:in `call'
/var/www/discourse/config/initializers/100-quiet_logger.rb:18:in `call'
/var/www/discourse/config/initializers/100-silence_logger.rb:31:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/var/www/discourse/lib/middleware/enforce_hostname.rb:17:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/method_override.rb:22:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.0.2/lib/mini_profiler/profiler.rb:171:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/message_bus-2.2.2/lib/message_bus/rack/middleware.rb:57:in `call'
/var/www/discourse/lib/middleware/request_tracker.rb:176:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:524:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/railtie.rb:190:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/railtie.rb:190:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/urlmap.rb:68:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `each'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `call'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:605:in `process_client'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:700:in `worker_loop'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:548:in `spawn_missing_workers'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/lib/unicorn/http_server.rb:144:in `start'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/unicorn-5.5.1/bin/unicorn:128:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `load'
/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/unicorn:23:in `<main>'

```

---

<div class="post-metadata">

### Author: ![M\_c\_Tau](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/m_c_tau/32/134836_2.png) [@M\_c\_Tau](https://meta.discourse.org/u/M_c_Tau)
#### Post date: [6 september 2019 om 07:04 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/11 "2019-09-06T07:04:13Z")

</div>

Any one would help? Thanks

---

<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: [6 september 2019 om 19:25 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/12 "2019-09-06T19:25:05Z")

</div>

I’m looking into it right now.

---

<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: [6 september 2019 om 20:26 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/13 "2019-09-06T20:26:33Z")

</div>

Okay we discovered the issue was with this commit:

[https://github.com/discourse/discourse/commit/310a8ac2427978779c1bb31f71321bfb84688336](https://github.com/discourse/discourse/commit/310a8ac2427978779c1bb31f71321bfb84688336)

It’s been reverted and we cut a new beta. If you upgrade your Discourses the issue should go away. We will investigate a new fix for Safari and cookies.

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [6 september 2019 om 20:37 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/14 "2019-09-06T20:37:53Z")

</div>

Thanks so much for this 😊

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6 september 2019 om 21:02 UTC](https://meta.discourse.org/t/google-not-working-as-a-login-method/127576/15 "2019-09-06T21:02:59Z")

</div>


