Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to totally disable Social Auth plugins #557

Open
gabviv73 opened this issue Jun 24, 2024 · 3 comments
Open

How to totally disable Social Auth plugins #557

gabviv73 opened this issue Jun 24, 2024 · 3 comments

Comments

@gabviv73
Copy link

Hy,
I've disable signups using
REGISTRATION_OPEN=False
but at
/accounts/login/
there are the social account logins providers available.
How do I disable them ?

Thank you

@elnappo
Copy link
Member

elnappo commented Jun 24, 2024

IIRC you have to remove them from AUTHENTICATION_BACKENDS i.e.:

AUTHENTICATION_BACKENDS = ["django.contrib.auth.backends.ModelBackend"]

if I'm wrong read https://python-social-auth.readthedocs.io/en/latest/index.html

@gabviv73
Copy link
Author

Thank you, now there no more social login plugins available.
Is it possible to disable also the message in the login page:

Login with a remote Account

No remote account logins enabled.

Please login with a local account.

?

Thanks,

@elnappo
Copy link
Member

elnappo commented Jun 25, 2024

This is not possible via a config parameter, you would have to edit the template here: https://github.com/nsupdate-info/nsupdate.info/blob/master/src/nsupdate/login/templates/login.html#L32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants