# SOLVED: Openhab Forum: Issues to login via GitHub & to register new user

**URL:** <https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390>\
**Category:** Off-Topic\
**Tags:** forum, github, discourse\
**Created:** [July 21, 2019, 10:07am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390 "2019-07-21T10:07:51Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmenke](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bmenke](https://community.openhab.org/u/bmenke)\
**Post date:** [July 21, 2019, 10:07am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/1 "2019-07-21T10:07:51Z")

</div>

Hi

First of all: I had to register a new user account in order to post this topic.

What happened?  
I am used to authenticate to this forum via my GitHub account. This was working for years and stopped approx. last week.  
When I try to login via GitHub the forum responds  
“[…] there was an error authorizing your account. Perhaps you did not approve authorization?”

 ![06](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/9/d95ba96d6ad068bfa309f9a38209c7cb138fb3e6.png)

So I did return to GitHub and checked “Authorized OAuth Apps” and “Discourse” is listed as an authorized app.  
I did afterwards revoke authorization for “Discourse” and authorized it again on Github via login to this forum. But it didn’t work out. Same issue.

To be able to report this problem here I registered a new forum account (native Discourse). During the account provisioning a similar issue turned up:

I received the “[openHAB] Confirm your new account…” email. I clicked on the included link to confirm and were forwarded to a page saying something like “Problem with authorization” (sorry no screenshot or exact wording).

So, it seems there are some issues with user login and new user registration with this Discourse instance.

Any suggestions or help?

Thanks, Bodo

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [July 21, 2019, 10:33am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/2 "2019-07-21T10:33:56Z")

</div>

I have noticed random issues with my iPhone. I use the Google login.  
I hit login with Google, it fails, and I hit login again and it directly works.

Perhaps there is a timeout that is set too aggressively so the forum times out.

---

<div class="post-metadata">

**Author:** ![bmenke](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bmenke](https://community.openhab.org/u/bmenke)\
**Post date:** [July 23, 2019, 2:02pm UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/3 "2019-07-23T14:02:26Z")

</div>

Thanks for the hint. I tried multiple hits on login on the iPhone as well and it worked. Unfortunately no luck with my desktop browser…

---

<div class="post-metadata">

**Author:** ![bmenke](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bmenke](https://community.openhab.org/u/bmenke)\
**Post date:** [July 23, 2019, 2:06pm UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/4 "2019-07-23T14:06:07Z")

</div>

@ysc I am not sure, if you are the right addressee for this issue. If not I am sorry. If so, do you mind to look into this? Thanks a lot, Bodo

---

<div class="post-metadata">

**Author:** ![ysc](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/e480ec/32.png) [@ysc](https://community.openhab.org/u/ysc)\
**Post date:** [July 25, 2019, 9:35am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/5 "2019-07-25T09:35:09Z")

</div>

Sorry for the delay (I am in holidays 😉 - @digitaldan @Kai are you aware of this, is it a known issue atm?

---

<div class="post-metadata">

**Author:** ![digitaldan](https://community.openhab.org/user_avatar/community.openhab.org/digitaldan/32/114476_2.png) [@digitaldan](https://community.openhab.org/u/digitaldan)\
**Post date:** [July 25, 2019, 10:12pm UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/6 "2019-07-25T22:12:34Z")

</div>

Hmm, i have not heard of this happening before. I tried logging out and back in a few times using my Github account and have not been able to reproduce. Strange.

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [July 25, 2019, 10:18pm UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/7 "2019-07-25T22:18:25Z")

</div>

I use Google on my iPhone 6 with the latest iOS, using the builtin Safari browser.

i click Login & then Google.  
I get the error like the forum is not authorized but with a **double top header**. (as shown above)  
Clicking **either Login or Sign Up** logs you in directly the with the expected single header at the top.

Note that on the double header only the lower one has the login buttons. Since the other screen shot was from a Mac perhaps this is a Safari incompatibility.

---

<div class="post-metadata">

**Author:** ![bmenke](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bmenke](https://community.openhab.org/u/bmenke)\
**Post date:** [July 26, 2019, 8:11am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/8 "2019-07-26T08:11:22Z")

</div>

Just tried Firefox on my Mac. Same story.  
To track down the issue, I removed again OAuth authorization at GitHub for openhab-bot and started with a new trial from the beginning:

1. After clicking “Login with Github”

2. After clicking “Authorize openhab-bot”

3. Checking if openhab-bot is really authorized at GitHub  
Interesting: See the “Never used”. Could it be that there is no authentication request submitted by the forum to GitHub?

 ![OHforum](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/2/428c25ba419fa77453043961147c13fdf804cd86.png)

Cheers,  
Bodo

P.S.: I had to combine the three screenshots into one file, since with this forum account I am a “new” users, who is only allowed to post one image . 😉 Pls click on the image to see all three screenshots…

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [July 26, 2019, 8:43am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/9 "2019-07-26T08:43:00Z")

</div>

> [@bmenke](#):
>
> I am used to authenticate to this forum via my GitHub account. This was working for years and stopped approx. last week.

I had updated the Discourse software to version 2.4.0.beta2 around that time - maybe they had some regression? I couldn’t see anything obvious in their commit history, though.

---

<div class="post-metadata">

**Author:** ![bmenke](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bmenke](https://community.openhab.org/u/bmenke)\
**Post date:** [July 26, 2019, 8:52am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/10 "2019-07-26T08:52:23Z")

</div>

I do not want to make too many people busy with this issue. To workaround it:

Would it be possible to migrate a Discourse-via-GitHub-account into a native Discourse account? Would prefer that. I should have created a native account straight from the beginning. 😉

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [July 26, 2019, 8:59am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/11 "2019-07-26T08:59:32Z")

</div>

@Kai I have a quick curiosity question. Why run a beta version in a production environment?

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [July 26, 2019, 9:21am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/12 "2019-07-26T09:21:50Z")

</div>

> [@bmenke](#):
>
> Would it be possible to migrate a Discourse-via-GitHub-account into a native Discourse account?

Good question, I cannot see any obvious way to do so, but looking at your profile (bodomenke), I also do not see anything that says that it is tied to Github auth. It actually also claims that you were seen 2 days ago, so you must have successfully logged in again? What happens if you login with that user through the normal login screen? Can you ask to reset the password or is there no such option for that account?

> [@Bruce\_Osborne](#):
>
> Why run a beta version in a production envy?

It’s the [official recommendation](https://meta.discourse.org/t/should-i-be-running-beta-or-release/56950/4).

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [July 26, 2019, 10:06am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/13 "2019-07-26T10:06:28Z")

</div>

Thanks. Sorry about the phone spellcheck.

---

<div class="post-metadata">

**Author:** ![bmenke](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bmenke](https://community.openhab.org/u/bmenke)\
**Post date:** [July 26, 2019, 11:09am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/14 "2019-07-26T11:09:28Z")

</div>

> [@Kai](#):
>
> but looking at your profile (bodomenke), I also do not see anything that says that it is tied to Github auth. It actually also claims that you were seen 2 days ago, so you must have successfully logged in again?

Reason is, that I had still an active session with bodomenke on my iPhone. So I logged out on the iPhone and logged in, which brought up the same problem. Difference: After the error message, I tapped again on login and it worked. Same behavior that @Bruce_Osborne described.  
Once I was logged in I removed in my Discourse profile the link to the GitHub profile. Was hoping that this could heal the issue.  
Result: Authorization issue/message didn’t change, but I could not succeed with another tap on Login (as before).  
BTW: On my Mac Safari the second click on Login after the authorization error never succeeded.

> [@Kai](#):
>
> What happens if you login with that user through the normal login screen? Can you ask to reset the password or is there no such option for that account?

Good question. I will try this next and report back.

---

<div class="post-metadata">

**Author:** ![bodomenke](https://community.openhab.org/user_avatar/community.openhab.org/bodomenke/32/96395_2.png) [@bodomenke](https://community.openhab.org/u/bodomenke)\
**Post date:** [July 26, 2019, 11:15am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/15 "2019-07-26T11:15:11Z")

</div>

Hooray @Kai, “Forget password” worked out!

Seems that I have “migrated” my account by this to a native Discourse account. Very nice! Even if the root cause is not solved by this yet (I don’t care honestly), I am more that happy with this solution.

From your POV: Shall I mark this issue as solved, even in the RC is still unknown?

---

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [July 27, 2019, 8:58am UTC](https://community.openhab.org/t/solved-openhab-forum-issues-to-login-via-github-to-register-new-user/78390/16 "2019-07-27T08:58:36Z")

</div>

Glad to hear that you can log in again!  
Yes, I’d think you can mark it as solved as this is a workaround we can do. The RC is most likely in the Discourse software, which we cannot change (and hope that it’ll be fixed in a future version).
