Flask-CAS
Flask-CAS is a Flask extension which makes it easy to authenticate with a CAS.
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:
from flask import Flask
app = Flask(__name__)
Apply CAS on your Flask instance:
from flask_cas import CAS
CAS(app)
Do needed configuration:
app.config['CAS_SERVER'] = 'https://sso.pdx.edu'
app.config['CAS_AFTER_LOGIN'] = 'route_root'
Using
After you setup you will get two new routes /login/ and /logout/.
Reference documentation
Release files for Flask-CAS 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Flask-CAS-1.0.2.tar.gz | 6.4 kB | Details |
Release files / Flask-CAS-1.0.2.tar.gz
| Download URL | Flask-CAS-1.0.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
689c7c9f6847a42f1466e4efc296955be9f2c716e9fcd81aabfa1313824b6ab6
|
|
BLAKE2b-256 checksum How to use checksums |
774dea64ad7e996820e3ff4f40f7c423834b01e8951061398f291068bf287064
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
|