[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/security - __init__.py:1.10
Stephen Richter
cvs-admin@zope.org
Thu, 31 Jul 2003 18:24:04 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/security
In directory cvs.zope.org:/tmp/cvs-serv20646/interfaces/security
Modified Files:
__init__.py
Log Message:
dreamcatcher and I a cyber-pair-programming: Getting a logout to work. Here
is the interface to start with.
=== Zope3/src/zope/app/interfaces/security/__init__.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/interfaces/security/__init__.py:1.9 Thu Jul 10 05:24:49 2003
+++ Zope3/src/zope/app/interfaces/security/__init__.py Thu Jul 31 18:23:59 2003
@@ -156,6 +156,21 @@
"""
+class ILogout(Interface):
+ """A simple logout interface."""
+
+ def logout():
+ """Logout the user.
+
+ This can mean different things. For example, when dealing with
+ cookie-based logins (browser), then it simply means deleting the
+ cookie. If we deal with HTTP Authentication, we just want to send
+ another challenge.
+
+ This also means that this method must have access to the request
+ object."""
+
+
class IRegisteredObject(Interface):
def getId():