Changeset 734ef4f


Ignore:
Timestamp:
Apr 20, 2010, 7:24:54 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
e1ae8b3
Parents:
dbb39a2
git-author:
Alex Dehnert <adehnert@…> (04/20/10 19:24:54)
git-committer:
Alex Dehnert <adehnert@…> (04/20/10 19:24:54)
Message:

Add docs for SocketAuthBackend?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • remit/util/SocketAuth.py

    rdbb39a2 r734ef4f  
    44
    55class SocketAuthBackend():
     6    """
     7    SocketAuthBackend provides a simple way to authenticate with another process.
     8
     9    The protocol is simple:
     10    * Open a connection to a socket.
     11    * On the first line, pass the name of the operation
     12    * Then, on successive lines, pass additional arguments, one per line
     13    * Close the write half of the socket
     14    * The authentication server sends back a reply, one tuple element
     15      per line
     16
     17    Queries include:
     18    * AUTHENTICATE(username, password) => boolean
     19    * FINGER(username) => (first name, last name, email, )
     20    """
    621    def authenticate(self, username, password, ):
    722        (result,) = query("AUTHENTICATE", username, password, )
Note: See TracChangeset for help on using the changeset viewer.