This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zvyn
Recipients barry, jesstess, pitrou, r.david.murray, zvyn
Date 2014-07-15.19:47:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405453663.05.0.860450325588.issue21935@psf.upfronthosting.co.za>
In-reply-to
Content
There is no real API in the current patch and authenticating has no effect (other then preventing you from authenticating again and storing the username). I am wondering how the user should turn AUTH on/off.

Solution 1:
add a keyword argument 'enable_AUTH' and require the programmer to override _verify_user_credentials. This function could
1.1 raise NotImplementedError
1.2 deny access
by default.

Solution 2:
add a keyword argument 'authentication_function' which turns AUTH support on when given and provides the function used to verify user credentials.

Solution 3:
enable AUTH if self has the _verify_user_credentials-function as attribute (and leave it undefined in the base class)

I think solution 1 is the most explicit so I'll implement that so we have something to discuss :)
History
Date User Action Args
2014-07-15 19:47:43zvynsetrecipients: + zvyn, barry, pitrou, r.david.murray, jesstess
2014-07-15 19:47:43zvynsetmessageid: <1405453663.05.0.860450325588.issue21935@psf.upfronthosting.co.za>
2014-07-15 19:47:43zvynlinkissue21935 messages
2014-07-15 19:47:42zvyncreate