# Authentication and changing domain

**URL:** https://meta.discourse.org/t/authentication-and-changing-domain/28276
**Category:** Support
**Created:** [May 4, 2015, 9:16am UTC](https://meta.discourse.org/t/authentication-and-changing-domain/28276 "2015-05-04T09:16:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mottosso](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mottosso/32/142771_2.png) [@mottosso](https://meta.discourse.org/u/mottosso)
#### Post date: [May 4, 2015, 9:16am UTC](https://meta.discourse.org/t/authentication-and-changing-domain/28276/1 "2015-05-04T09:16:55Z")

</div>

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](https://github.com/settings/applications), but nothing changed.

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

---

<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: [May 4, 2015, 9:19am UTC](https://meta.discourse.org/t/authentication-and-changing-domain/28276/2 "2015-05-04T09:19:29Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mottosso](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mottosso/32/142771_2.png) [@mottosso](https://meta.discourse.org/u/mottosso)
#### Post date: [May 4, 2015, 9:39am UTC](https://meta.discourse.org/t/authentication-and-changing-domain/28276/3 "2015-05-04T09:39:13Z")

</div>

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.

- [Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 1, 2018, 3:28pm UTC](https://meta.discourse.org/t/authentication-and-changing-domain/28276/4 "2018-10-01T15:28:34Z")

</div>



---

<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: [October 2, 2018, 12:32am UTC](https://meta.discourse.org/t/authentication-and-changing-domain/28276/5 "2018-10-02T00:32:38Z")

</div>


