# Can I add a OAuth login to an existing account?

**URL:** https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128
**Category:** Support
**Created:** [11월 30, 2017, 10:05오후 UTC](https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128 "2017-11-30T22:05:19Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![brianhicks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianhicks/32/107691_2.png) [@brianhicks](https://meta.discourse.org/u/brianhicks)
#### Post date: [11월 30, 2017, 10:05오후 UTC](https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128/1 "2017-11-30T22:05:19Z")

</div>

I’m setting our Discourse site up and would like to test OAuth logins without having to create a bunch of users. Is there a way I can add an OAuth login to my email/password account? I don’t see anything in the user preferences screen or in the admin.

---

<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: [11월 30, 2017, 10:08오후 UTC](https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128/2 "2017-11-30T22:08:27Z")

</div>

Simplest is to trust email from the OAuth provider, then sign in and it will magically auto-associate to existing account.

---

<div class="post-metadata">

### Author: ![brianhicks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianhicks/32/107691_2.png) [@brianhicks](https://meta.discourse.org/u/brianhicks)
#### Post date: [11월 30, 2017, 10:10오후 UTC](https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128/3 "2017-11-30T22:10:45Z")

</div>

hmm, that sounds like it would do what I want but I don’t see any relevant settings. Is that enabled by default?

---

<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: [11월 30, 2017, 10:15오후 UTC](https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128/4 "2017-11-30T22:15:09Z")

</div>

Depends on the OAuth plugin you are using, for the out-of-the-box Google provider it is enabled by default.

---

<div class="post-metadata">

### Author: ![brianhicks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianhicks/32/107691_2.png) [@brianhicks](https://meta.discourse.org/u/brianhicks)
#### Post date: [11월 30, 2017, 10:16오후 UTC](https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128/5 "2017-11-30T22:16:02Z")

</div>

Looks like it worked for both Google and Github. Thanks!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:43오후 UTC](https://meta.discourse.org/t/can-i-add-a-oauth-login-to-an-existing-account/75128/6 "2024-06-08T12:43:54Z")

</div>

이 주제는 2381일 후 자동으로 닫혔습니다. 더 이상 답변을 할 수 없습니다.
