Skip to main content

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.ext.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

See https://github.com/cameronbwhite/Flask-CAS

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Flask_CAS_fork-1.0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file Flask_CAS_fork-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_CAS_fork-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d53df8a1fa7beb62aa3efe8c301d8aedeb93d8b7ec4e4c7ab89c9f2553fcd84f
MD5 9135658c9c9f4966a556ecfbc0f9f01c
BLAKE2b-256 c3f3ff7b8dc6a82f598a95ff2cb2c85cd3a98c272a05a593e8604c360b5f9882

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page