Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: third_party/twisted_8_1/twisted/plugins/cred_anonymous.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # -*- test-case-name: twisted.test.test_strcred -*-
2 #
3 # Copyright (c) 2007-2008 Twisted Matrix Laboratories.
4 # See LICENSE for details.
5
6 """
7 Cred plugin for anonymous logins.
8 """
9
10 from zope.interface import implements
11
12 from twisted import plugin
13 from twisted.cred.checkers import AllowAnonymousAccess
14 from twisted.cred.strcred import ICheckerFactory
15 from twisted.cred.credentials import IAnonymous
16
17
18 anonymousCheckerFactoryHelp = """
19 This allows anonymous authentication for servers that support it.
20 """
21
22
23 class AnonymousCheckerFactory(object):
24 """
25 Generates checkers that will authenticate an anonymous request.
26 """
27 implements(ICheckerFactory, plugin.IPlugin)
28 authType = 'anonymous'
29 authHelp = anonymousCheckerFactoryHelp
30 argStringFormat = 'No argstring required.'
31 credentialInterfaces = (IAnonymous,)
32
33
34 def generateChecker(self, argstring=''):
35 return AllowAnonymousAccess()
36
37
38
39 theAnonymousCheckerFactory = AnonymousCheckerFactory()
40
OLDNEW
« no previous file with comments | « third_party/twisted_8_1/twisted/plugins/__init__.py ('k') | third_party/twisted_8_1/twisted/plugins/cred_file.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698