Opened 17 years ago

Closed 13 years ago

#6490 closed New feature (fixed)

Accept variable keyword args in authentication

Reported by: Bastian Kleineidam <calvin@…> 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)

0018-Accept-variable-keyword-args-in-authentication.patch (1.1 KB ) - added by Bastian Kleineidam <calvin@…> 17 years ago.

Download all attachments as: .zip

Change History (8)

by Bastian Kleineidam <calvin@…>, 17 years ago

comment:1 by Jacob, 17 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Piotr Lewandowski <django@…>, 16 years ago

Component: UncategorizedAuthentication

comment:3 by Julien Phalip, 14 years ago

Type: New feature

comment:4 by Julien Phalip, 13 years ago

Severity: Normal

comment:5 by Carl Meyer, 13 years ago

Easy pickings: unset
Resolution: wontfix
Status: newclosed
UI/UX: unset

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.

comment:6 by Carl Meyer, 13 years ago

Resolution: wontfix
Status: closedreopened

comment:7 by Carl Meyer, 13 years ago

Resolution: fixed
Status: reopenedclosed

Sorry, wrong resolution, reclosing as fixed.

Note: See TracTickets for help on using tickets.
Back to Top