Skip to content

favoritemedium/sso-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSO Prototype

This is a simple single-sign-on prototype that can be used as base user authentication system for just about anything.

Recommended local setup

$ virtualenv -p python3 .venv --prompt="(sso) "
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ ./manage.py migrate

I like to use autoenv with an .env file that looks like this:

source `dirname -- "$0"`/.venv/bin/activate
alias pm="./manage.py"
export DEBUG=on

This app needs Github app for 3rd part login, please register your app, and set /callback/github as callback address. After registration done, copy fmproject/config.json.example to fmproject/config.json and fill client_id and client_secret from registered app to that file.

Then I can cd into project root and run the site in debug mode with:

$ pm runserver

About

Single-sign-on prototype for a Django project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published