Opened 17 years ago
Closed 13 years ago
#6490 closed New feature (fixed)
Accept variable keyword args in authentication
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.auth | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently authentication functions accept username and password,
but some authentication algorithms may require other types
of credentials (such as public keys or ip addresses).
Thus the authenticate() function should accept variable keyword
arguments to allow such constructs.
Attachments (1)
Change History (8)
by , 17 years ago
Attachment: | 0018-Accept-variable-keyword-args-in-authentication.patch added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 16 years ago
Component: | Uncategorized → Authentication |
---|
comment:3 by , 14 years ago
Type: | → New feature |
---|
comment:4 by , 14 years ago
Severity: | → Normal |
---|
comment:5 by , 13 years ago
Easy pickings: | unset |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
UI/UX: | unset |
comment:6 by , 13 years ago
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
comment:7 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Sorry, wrong resolution, reclosing as fixed.
Note:
See TracTickets
for help on using tickets.
This is already addressed. Auth backends' authenticate methods can accept any credentials. The main django.contrib.auth.authenticate() function accepts arbitrary keyword argument credentials and catches the TypeError if the credentials are wrong for a given backend.