A CAS client for use with the Pyramid web framework
Project description
Introduction
pyramid_cas allows your application to authenticate against a Jasig CAS server. It takes borrowed concepts from different packages like django.cas, anz.client, and collective.cas.
License
pyramid_cas is licensed under the Apache License 2.0.
Installation
pip install pyramid_cas
Instructions
Required:
Include pyramid_cas under pyramid.includes directive in your .ini file like this:
pyramid.includes = [... other packages ...] pyramid_casSet the cas server that will be used for authentication:
pyramid_cas.cas_server = your-cas-server pyramid_cas.redirect_route - allows you to specify what route name to redirect to after succesful authenticationOptional:
pyramid_cas.callback.get_user - allows you to use a callback function to store a different User object after CAS authentication. By default pyramid_cas will store (using the pyramid remember method) only the user id returned by CAS.Example:
pyramid_cas.callback.get_user = adminsite.security.getUserObject pyramid_cas.redirect_route = profile # redirects to profile page on successful authenticationUse the following route names for login and logout in your application:
cas-login cas-logout
TODO
Implement CAS 1.0 protocol
Add login and logout by injection and makes it configurable using tweens
Add tests
Add demos
Prevent adding pyramid_cas without settings
Add came_from parameter
0.4 [2/14/23]
Fix a python 3 import error
0.3 [7/21/14]
Now Apache licensed
Login and logout routes are now named
Added redirect route after successful authentication
0.2 [6/17/14]
Brought into compliance with PEP8
Clarified documentation
Fixed bug related to iteration over headers (thanks, Szymon: https://github.com/zefciu/pyramid_cas/commit/3b67e69ea2418e64fcf8312e00fa17e10198788f)
0.1 alpha
[April 13, 2012] Initial version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyramid_cas-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3df6cd398d36d6c2c2ecdc7fd2368bd204c7449ae2e614a2a5b8fc85804cd8a |
|
MD5 | c1cdc756416e05beba226318cf7c828f |
|
BLAKE2b-256 | 8398fff04b6a14b0a32f7045b8aed236fb6c752142e8989403c3bce5ce234edf |