[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - IAuthentication.py:1.1.2.1

Jim Fulton jim@zope.com
Fri, 30 Nov 2001 17:41:19 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv678

Added Files:
      Tag: Zope-3x-branch
	IAuthentication.py 
Log Message:
Initial definition.


=== Added File Zope3/lib/python/Zope/App/Security/IAuthentication.py ===
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# 
##############################################################################

from Interface import Interface

class IAuthentication(Interface):

    def authenticate(credentials):
        """Try to authenticate a user for given credentials

        If authentication suceeds an object is returned that
        implements IUser, otherwise None is returned.

        The credentials argument must be an ICredentials.
        """