Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

The pycas CAS client provides CAS authentication for your Python CGI web application.

Download the Python CAS client here.
STEPS

  1. Import the pycas module
  2. Add three lines like this,
    	CAS_SERVER  = "https://casserver.mydomain"
            SERVICE_URL = "http://webserver.mydomain/cgi-bin/webapp.py"
    	status, id, cookie = login(CAS_SERVER, SERVICE_URL)
    
  3. Process the returned variables*,*

status carries the success or failure status.
id is the user's account name.
cookie is the header string to send to the client if it's not empty.

  • No labels