Authenticate backend raise error when used with other authentication.
See original GitHub issuemy authenticate settings
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend', # default
'django_cas_ng.backends.CASBackend',
'django_python3_ldap.auth.LDAPBackend',
)
and I use the default login view in django_cas_ng which pass 3 arguments to authenticate function (request, ticket, service but not password) . if I’m not logged in, django authenticate will check all authenticate backends.
In this time, ldap authenticate will raise error because it does not pass a password.
password = kwargs.pop("password")
It should be changed to
password = kwargs.pop("password", None)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Django - Error Message in Custom Auth Backend
You can raise a django ValidationError from django.core.exceptions import ValidationError raise ValidationError("Some custom message").
Read more >Customizing authentication in Django
If a backend raises a PermissionDenied exception, authentication will immediately fail. Django won't check the backends that follow. Note. Once a user has ......
Read more >Authenticate with a backend server - Google Developers
The ID token is properly signed by Google. Use Google's public keys (available in JWK or PEM format) to verify the token's signature....
Read more >DEFAULT_AUTHENTICATION_...
We are using JWT for our backend auth and Oauth2 for external connections, the problem we have is that if one authentication backend...
Read more >Admin Authentication API Errors | Firebase - Google
The credential used to initialize the Admin SDK has insufficient permission to access the requested Authentication resource. Refer to Set up a Firebase...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released as 0.11.4. 😃
On Fri, 5 Feb 2021 at 10:28, Dave Hall dave@etianen.com wrote:
I’ll get a release out today, no worries 😃
Thanks for your patience.
On Sun, 31 Jan 2021 at 05:17, Axieum notifications@github.com wrote: