[cas-dev] CAS Python module available

Jon Rifkin jon.rifkin at uconn.edu
Wed Nov 22 14:56:43 EST 2006


I've written a python module that that handles CAS 1.0 and 2.0
authentication.  It called like this

    import pycas
    status, id, cookie = pycas.login(CAS_SERVER,THIS_URL)

The module returns the status (0 for success), the user id and a cookie
string.    The calling program needs to send the cookie to the client if
it's not blank, using something like this

    print "Content-type"
    print cookie
    print
    ... remaining html ...


The module is available at

  http://bluet.ucc.uconn.edu/cas


Thanks.

- Jon
==============================================================================
# Jon Rifkin     # 860-486-5530    # jon.rifkin at uconn.edu
# Information Technology Services  # University of Connecticut

    



More information about the cas-dev mailing list