Index: third_party/twisted_8_1/twisted/plugins/cred_anonymous.py |
diff --git a/third_party/twisted_8_1/twisted/plugins/cred_anonymous.py b/third_party/twisted_8_1/twisted/plugins/cred_anonymous.py |
deleted file mode 100644 |
index 8b4c00bea291f4a5a2e206894a0581fa2cd4d0e6..0000000000000000000000000000000000000000 |
--- a/third_party/twisted_8_1/twisted/plugins/cred_anonymous.py |
+++ /dev/null |
@@ -1,40 +0,0 @@ |
-# -*- test-case-name: twisted.test.test_strcred -*- |
-# |
-# Copyright (c) 2007-2008 Twisted Matrix Laboratories. |
-# See LICENSE for details. |
- |
-""" |
-Cred plugin for anonymous logins. |
-""" |
- |
-from zope.interface import implements |
- |
-from twisted import plugin |
-from twisted.cred.checkers import AllowAnonymousAccess |
-from twisted.cred.strcred import ICheckerFactory |
-from twisted.cred.credentials import IAnonymous |
- |
- |
-anonymousCheckerFactoryHelp = """ |
-This allows anonymous authentication for servers that support it. |
-""" |
- |
- |
-class AnonymousCheckerFactory(object): |
- """ |
- Generates checkers that will authenticate an anonymous request. |
- """ |
- implements(ICheckerFactory, plugin.IPlugin) |
- authType = 'anonymous' |
- authHelp = anonymousCheckerFactoryHelp |
- argStringFormat = 'No argstring required.' |
- credentialInterfaces = (IAnonymous,) |
- |
- |
- def generateChecker(self, argstring=''): |
- return AllowAnonymousAccess() |
- |
- |
- |
-theAnonymousCheckerFactory = AnonymousCheckerFactory() |
- |