# Hosted discourse, google oauth2 \> 502 on callback

**URL:** <https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182>\
**Category:** Support\
**Created:** [April 7, 2016, 2:38pm UTC](https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182 "2016-04-07T14:38:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Weissgraeber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robert_weissgraeber/32/238128_2.png) [@Robert\_Weissgraeber](https://meta.discourse.org/u/Robert_Weissgraeber)\
**Post date:** [April 7, 2016, 2:38pm UTC](https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182/1 "2016-04-07T14:38:10Z")

</div>

Hi,

I’m using the hosted discourse installation, and have configured the google oauth2 settings.

The callback url called from google is setup correctly, but then gives the user a 502 on discourse.

Regards,  
Robert

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [April 7, 2016, 9:10pm UTC](https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182/2 "2016-04-07T21:10:59Z")

</div>

Hi Robert,

I was able to signup using Google (a gmail address), and to log in to an existing account with Google too (my [discourse.org](http://discourse.org) address). Can you give us any other info that could narrow it down?

Neil

---

<div class="post-metadata">

**Author:** ![Robert\_Weissgraeber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robert_weissgraeber/32/238128_2.png) [@Robert\_Weissgraeber](https://meta.discourse.org/u/Robert_Weissgraeber)\
**Post date:** [April 8, 2016, 11:08am UTC](https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182/3 "2016-04-08T11:08:08Z")

</div>

can you try on our hosted instance: [http://forums.ax-semantics.com/](http://forums.ax-semantics.com/)

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [April 8, 2016, 2:52pm UTC](https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182/4 "2016-04-08T14:52:07Z")

</div>

That’s where I tested. You’ll see in your users list that I have two accounts. 😊 One was created with Google Oauth, the other one was a signup without Google Oauth and then log in with Google later. Both cases worked for me.

---

<div class="post-metadata">

**Author:** ![Robert\_Weissgraeber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robert_weissgraeber/32/238128_2.png) [@Robert\_Weissgraeber](https://meta.discourse.org/u/Robert_Weissgraeber)\
**Post date:** [April 8, 2016, 3:04pm UTC](https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182/5 "2016-04-08T15:04:28Z")

</div>

OK, then the issue is either solved, a heisenbug or related to the google accounts we tested it. thanks.

---

<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:** [April 8, 2016, 11:44pm UTC](https://meta.discourse.org/t/hosted-discourse-google-oauth2-502-on-callback/42182/6 "2016-04-08T23:44:53Z")

</div>


