[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/pluggableauth/__init__.py Merged from trunk:

Jim Fulton jim at zope.com
Thu Jul 8 15:43:20 EDT 2004


Log message for revision 26225:
Merged from trunk:

  r26176 | jim | 2004-07-07 14:34:31 -0400 (Wed, 07 Jul 2004) | 2 lines

resolved some XXXs through comments or documentation



-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/pluggableauth/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/pluggableauth/__init__.py	2004-07-08 19:42:22 UTC (rev 26224)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/pluggableauth/__init__.py	2004-07-08 19:43:20 UTC (rev 26225)
@@ -90,8 +90,9 @@
         return None
 
     def unauthenticatedPrincipal(self):
-        """ See IAuthenticationService. """
-        return None # XXX Do we need to implement or use another?
+        # It's safe to assume that the global auth service will
+        # provide an unauthenticated principal, so we won't bother.
+        return None
 
     def unauthorized(self, id, request):
         """ See IAuthenticationService. """
@@ -570,6 +571,14 @@
         return test_password == self.password
 
 class PrincipalAuthenticationView:
+    """Simple basic authentication view
+
+    This only handles requests which have basic auth credentials
+    in them currently (ILoginPassword-based requests).
+    If you want a different policy, you'll need to write and register
+    a different view, replacing this one.
+    
+    """
     implements(IViewFactory)
 
     def __init__(self, context, request):
@@ -577,10 +586,6 @@
         self.request = request
 
     def authenticate(self):
-        # XXX we only handle requests which have basic auth credentials
-        # in them currently (ILoginPassword-based requests)
-        # If you want a different policy, you'll need to write and register
-        # a different view, replacing this one.
         a = ILoginPassword(self.request, None)
         if a is None:
             return



More information about the Zope3-Checkins mailing list