Skip to main content

pyramid_cas

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.

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_cas

Set the cas server that will be used for authentication:

pyramid_cas.cas_server = your-cas-server

Optional:

pyramid_cas.callback.get_user directive 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

Use the following actions for login and logout in the application that is including pyramid_cas:

/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

Project details


Release history Release notifications

History Node

0.3

This version
History Node

0.2

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pyramid_cas-0.2.tar.gz (5.7 kB) Copy SHA256 hash SHA256 Source None Jul 17, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page