#34032: Base authentication Backend should raise NotImplemented on needed
methods
-------------------------------------+-------------------------------------
Reporter: Dre Westcook | Owner:
Type: | piyushdivyankar1994
Cleanup/optimization | Status: closed
Component: contrib.auth | Version: 4.0
Severity: Normal | Resolution: wontfix
Keywords: authentication | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: assigned => closed
* type: Uncategorized => Cleanup/optimization
* has_patch: 1 => 0
* resolution: => wontfix
* easy: 1 => 0
Comment:
Thanks for the ticket, however `BaseBackend` methods return `None` as it's
the proper value for invalid credentials, see
[https://docs.djangoproject.com/en/stable/ref/contrib/auth/#django.contrib.auth.backends.BaseBackend
docs]:
> ''"A base class that provides default implementations for all required
methods. By default, it will reject any user and provide no
permissions."''
Unfortunately, both your propositions are backward incompatible and
against the current docs. Hope it makes sense.
--
Ticket URL: <https://code.djangoproject.com/ticket/34032#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701836af3fc23-b575f2cb-fc77-401f-9bd3-5ea589352d29-000000%40eu-central-1.amazonses.com.