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 Distribution

Flask-CAS-0.4.3.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file Flask-CAS-0.4.3.tar.gz.

File metadata

  • Download URL: Flask-CAS-0.4.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Flask-CAS-0.4.3.tar.gz
Algorithm Hash digest
SHA256 76b4fdc637871f3425f76636e470a31a8d5b7d8ba70ed071c4e0a8f23a8d0ff6
MD5 fb367daf53a06c7a3ca1beb61227b935
BLAKE2b-256 4dbfa3db0ab6f94793ddcbf5487778ccdec3180307f2021a82d5299bce3db9f9

See more details on using hashes here.

Supported by

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