Skip to main content

Flask extension for CAS

Project description

flask-cas-ng is a maintenance fork of the original Flask-CAS
flask-cas-ng is a Flask extension which makes it easy to
authenticate with a CAS.


The Central Authentication Service (CAS) is a single sign-on
protocol for the web. Its purpose is to permit a user to access
multiple applications while providing their credentials (such as
userid and password) only once. It also allows web applications
to authenticate users without gaining access to a user's security
credentials, such as a password. The name CAS also refers to a
software package that implements this protocol.

(Very short) Setup Tutorial

First create a Flask instance:

.. code:: python

from flask import Flask

app = Flask(__name__)

Apply CAS on your Flask instance:

.. code:: python

from flask_cas import CAS


Do needed configuration:

.. code:: python

app.config['CAS_SERVER'] = ''

app.config['CAS_AFTER_LOGIN'] = 'route_root'


After you setup you will get two new routes `/login/`
and `/logout/`.

Reference documentation


Project details

Download files

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

Files for flask-cas-ng, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size flask_cas_ng-1.1.0-py3-none-any.whl (6.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size flask-cas-ng-1.1.0.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page