Flask extension for CAS
Project description
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
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
File details
Details for the file Flask-CAS-1.0.2.tar.gz
.
File metadata
- Download URL: Flask-CAS-1.0.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 689c7c9f6847a42f1466e4efc296955be9f2c716e9fcd81aabfa1313824b6ab6 |
|
MD5 | 5a1f85b9bfa2bbc2a19fabeaa6c3b16f |
|
BLAKE2b-256 | 774dea64ad7e996820e3ff4f40f7c423834b01e8951061398f291068bf287064 |