[GH-ISSUE #557] How to totally disable Social Auth plugins #383

Open
opened 2026-02-26 10:31:11 +03:00 by kerem · 3 comments
Owner

Originally created by @gabviv73 on GitHub (Jun 24, 2024).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/557

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

Originally created by @gabviv73 on GitHub (Jun 24, 2024). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/557 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
Author
Owner

@elnappo commented on GitHub (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

<!-- gh-comment-id:2186413865 --> @elnappo commented on GitHub (Jun 24, 2024): IIRC you have to remove them from `AUTHENTICATION_BACKENDS` i.e.: ```python AUTHENTICATION_BACKENDS = ["django.contrib.auth.backends.ModelBackend"] ``` if I'm wrong read https://python-social-auth.readthedocs.io/en/latest/index.html
Author
Owner

@gabviv73 commented on GitHub (Jun 24, 2024):

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,

<!-- gh-comment-id:2186743532 --> @gabviv73 commented on GitHub (Jun 24, 2024): 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,
Author
Owner

@elnappo commented on GitHub (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

<!-- gh-comment-id:2188215272 --> @elnappo commented on GitHub (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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#383
No description provided.