Authentication and changing domain

AI-generated summary

mottosso changed their Discourse app’s domain and lost GitHub login functionality, receiving an authorization error. Despite revoking the GitHub app, the issue persisted. codinghorror explained that social logins (like GitHub) require updating the domain in the provider’s settings — a step outlined in the Discourse domain change guide. He reassured that Discourse links accounts via validated email, so users can still log in manually via email link or password reset if they use the same email. mottosso confirmed they could reset their password via email but remained locked out of GitHub login since the app was removed and not reconfigured. They acknowledged the documentation and appreciated the quick help.

I recently changed the domain name for my Discourse app and lost the ability to log in via GitHub.

Sorry, there was an error authorizing your account. Perhaps you did not approve authorization?

I tried revoking the app from the GitHub applications page, but nothing changed.

Is there any way to resolve this and regain the ability to login to existing accounts via GitHub?

Usually you just need to change the domain on the GitHub side. We do mention this in the howto on changing your domain name – all social logins need to be changed to reflect the new domain.

We always associate logins based on email, so as long as the user logs in with the same email (either manually via click-the-emailed-guid-link, or automatically via a provider that sends a validated email) they will enter the Discourse account that matches that validated email.

Thanks (again) for the quick reply!

Usually you just need to change the domain on the GitHub side.

Ah, bummer. What if the application has already been removed? Looks like I can at least hit the “Forgot password” and make a new password, assuming that’s because of this:

We always associate logins based on email

But I can’t hit the login with GitHub anymore as it’s still giving me the error.

We do mention this in the howto on changing your domain name

Found it. Linking to it for reference.