Skip to main content

A pypi-downloadable version of the Jasig pycas client.

Project description

Why?

This is a copy of the Jasig pycas client. The original can be found at https://wiki.jasig.org/display/CASC/Pycas

However, it is neither easy to find nor on Pypi. This is an attempt to rectify that situation.

How?

pip install pycas

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

STEPS TO ADD CAS AUTHENTICATION

  1. Add four lines to your Python Web app like this:

    from pycas import pycas
    CAS_SERVER  = "https://casserver.mydomain"
    SERVICE_URL = "http://webserver.mydomain/cgi-bin/webapp.py"
    status, id, cookie = pycas.login(CAS_SERVER, SERVICE_URL)
  2. 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.

For more information, see comments in the Python code.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycas-0.0.1.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file pycas-0.0.1.tar.gz.

File metadata

  • Download URL: pycas-0.0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycas-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3d836b6c6f0ade2a5c11705e7327c17d18cda5ef3b89224a115b463bcf26d048
MD5 d228b8be1563b8f0fcc74ac6affb4270
BLAKE2b-256 7d3b74857cefaf6877a93b3955bc8d68ab0c20928186c236ea024123a42ec10c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page