Flask extension in the Keg ecosystem to wrap authentication and authorization functionality. Keg-Auth provides helpers for auth model, view/authorization setup, protected navigation menus, and more.
- Bare functionality: pip install keg-auth
- With mail (i.e. with a mail manager configured, see below): pip install keg-auth[mail]
- JWT (for using JWT tokens as authenticators): pip install keg-auth[jwt]
- LDAP (for using LDAP target for authentication): pip install keg-auth[ldap]
- OAuth (e.g. Google Auth): pip install keg-auth[oauth]
- Internationalization extensions: pip install keg-auth[i18n]
For a simple example and a checklist of sorts for app setup, see the Getting Started guide in the docs.
Typical usage is demonstrated in https://github.com/level12/keg-app-cookiecutter
- Documentation: https://keg-auth.readthedocs.io/en/stable/index.html
- Releases: https://pypi.org/project/Keg-Auth/
- Code: https://github.com/level12/keg-auth
- Issue tracker: https://github.com/level12/keg-auth/issues
- Keg framework: https://github.com/level12/keg
- Questions & comments: http://groups.google.com/group/blazelibs
To run this project's tests:
- Copy keg_auth_ta-config-example.py -> keg_auth_ta-config.py, update as needed
- Override database addr &/or port with environment vars or docker compose override if needed.
- docker-compose up [-d]
- tox ...
There is a test application defined that can be ran like:
- cd keg_auth_ta
- python app.py ...