Locked myself out of Discourse

I’ve turned off Discourse login and routed all logins through Auth0. For the users that registered through Discourse even I try to match them up with the password on Auth0 it still asks them to sign up for a new account and says the email address is taken. Any ideas?
Would also welcome suggestions on how to turn on Discourse login while I figure this out.
Cheers,
C

Hi @devteam2,

Are you unable to get to the admin dashboard of your discourse instance? Can you share exactly what settings you have changed that led to this? In addition, I highly recommend using a staging environment when making these types of changes in the future.

It might be worth posting this on meta.discourse.org as well.

I’m unable to access the admin dashboard but I should still be able to access the database and SSH to the backend.

I got a result on meta.discourse.org so thanks for the tip. Simply had to append the line below to the url and it emailed a magic link Locked myself out of Discourse - support - Discourse Meta

I’m just wondering if I’ve set it all up right. If I’m redirecting people to Auth0, to sign up, why are they still required to create an account on Discourse and the fields aren’t being carried across.
That’s another topic right there

u/admin-login

Discourse requires some information in addition to Auth0. We have the user login through Auth0 and continue to signup with a discourse profile.

Sorry what I meant was login not sign up. So I’ve imported users into Auth0, will I need to import them into Discourse so they aren’t prompted to create an account? Will the authentication work then?

How we have it set up, users click the login button on discourse, then they are redirected to the Auth0 login page and after successful authentication, they are returned to discourse where they are prompted to create their discourse account/profile.

Can you provide more information about how your setup differs? At this point, it might be helpful to add some screenshots or a quick video of how your login currently works.

So I’ve imported users into Auth0 with their password. I’ve also imported them into Discourse using the same password. The idea is that when they click on the login with Auth0 the Auth0 login pops up and matches them to the details in the Discourse platform without them having to set up a new account.
When I try this approach I get the setup account instead of 'you’ve been logged in" The attached skips the Auth0 login box because I had previously tried logging in that way. So Auth0 remembers but DIscourse doesn’t know who I am.


I think the typical setup has users authenticate via Auth0 (and it sounds like this is working), then register in discourse as you describe.

I’m not sure how you would go about importing all the users into discourse and skipping the initial registration. I think this question is probably best handled at meta.discourse.org as it is specific to their platform and is occurring post-authentication. Have you looked through this thread: