Is there a way to allowed logins to external/plugin types only?

AI-generated summary

The discussion revolves around configuring Discourse to allow logins only through external or third-party providers, disabling local email-based registration and logins. itsbhanusharma explains that disabling the enable local logins and enable local logins via email settings achieves this, though warns it could lead to being locked out if external authentication fails. chagara seeks clarification on recovery options, confirming that local logins can be re-enabled via command line or by maintaining an active session with external login. codinghorror adds that administrators can use the /users/admin-login URL to log in via email if needed, providing a safety net. chagara appreciates the information and plans to keep it in mind.

I’m looking at the settings in the UI and trying to figure out the correct path. So basically this is what I’m trying to do:

Allow Users to Log-in and only with discourse
can't self register with the email option
'Account gets created when they log-in using discourse option`

basically only use external login or 3rd party.

:warning: this can potentially lock you out if you don’t already have your account associated with the external authentication provider. You’ve been warned.

You can disable the enable local logins, enable local logins via email option to allow only login from external providers.

ok cool then lets say external logins stop working then this can be enabled through the command line? or if I still have my session available from external logins I can enable it back? (just making sure :)).

Yes it can be but that’s extra painful steps.

Yes definitely.

You can go to /users/admin-login to login with email if you get locked out.

thank you for that information. I’ll keep a note on it.