A simple flask app to demo CAS login using the Flask-CAS extension
- Clone it
git clone https://github.com/cameronbwhite/flask-cas-extension-demo
- Enter it
cd flask-cas-extension-demo
- Create python virtual environment
virtualenv venv
- Activate virtual environment
source venv/bin/activate
- Install it and dependencies
python setup.py install
There are a few ways to run the application. The first way is to run it in flask's web server. The second way is to use gunicorn. Its also all set up to run on Heroku.
If your CAS is located at https://sso.pdx.edu/
python app.py --debug True
If your CAS is located at https://sso.pdx.edu/
You need to add an environment variable SECRET_KEY
before you can run gunicorn.
- Add
SECRET_KEY
export SECRET_KEY=[its a secret]
- Run it
gunicorn app:app
Its ready to go. All you have to do is make an account and upload it. You will need to set up the enviroment like gunicorn.