Can I add a OAuth login to an existing account?


(Brian Hicks) #1

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.


(Sam Saffron) #2

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


(Brian Hicks) #3

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


(Sam Saffron) #4

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


(Brian Hicks) #5

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