pycas v0.0.3
Notice: this seems to not quite fit the needs of the project it was intended for. It will remain in its current form, but consider the package no longer maintained. Feel free to improve it further if you choose, and submit pull requests on github.
What?
This is a copy of Jon Rifkin’s Python CAS client. The original can be found at https://wiki.jasig.org/display/CASC/Pycas. This fork lives at https://github.com/ryanfox/pycas and on Pypi.
The original appears to have not been updated for some time now, and is not on Pypi. This is an attempt to rectify that situation.
- Potential things to be added:
Unit tests
- Better security:
Remove default secret key
Better yet, ditch md5 entirely
Add signed cookies (e.g. itsdangerous)
Enforce the timeout
Installation
pip install pycas
Why?
The pycas CAS client provides CAS authentication for your Python CGI web application.
How?
STEPS TO ADD CAS AUTHENTICATION
Add four lines to your Python Web app like this:
import pycas CAS_SERVER = "https://casserver.mydomain" SERVICE_URL = "http://webserver.mydomain/cgi-bin/webapp.py" status, userid, cookie = pycas.login(CAS_SERVER, SERVICE_URL)
Process the returned variables:
status carries the success or failure status. userid 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.
Metadata
Release files for pycas 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycas-0.0.3.tar.gz | 6.5 kB | Without provenance | Details for pycas-0.0.3.tar.gz |
Release files / pycas-0.0.3.tar.gz
| Download URL | pycas-0.0.3.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
877b28b0e26a95f18d5943062d9a97139591afb434f8481b7c6575feefc93025
|
|
BLAKE2b-256 checksum How to use checksums |
b0651dca734c210bf44385f91a0c3b539c8c9019027b222e198fdb507becb045
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pycas 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.