https://github.com/tomfaulkner/falcon-auth-jwt-cookie-cutter
A cookie cutter for Falcon with Falcon-Auth using JWT on Python 3.7 in Docker
https://github.com/tomfaulkner/falcon-auth-jwt-cookie-cutter
api cookiecutter cookiecutter-template docker docker-compose falcon falcon-auth jwt pipenv python rest-api template
Last synced: 4 months ago
JSON representation
A cookie cutter for Falcon with Falcon-Auth using JWT on Python 3.7 in Docker
- Host: GitHub
- URL: https://github.com/tomfaulkner/falcon-auth-jwt-cookie-cutter
- Owner: TomFaulkner
- Created: 2018-04-22T00:50:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T01:10:43.000Z (about 7 years ago)
- Last Synced: 2025-01-01T06:27:16.329Z (6 months ago)
- Topics: api, cookiecutter, cookiecutter-template, docker, docker-compose, falcon, falcon-auth, jwt, pipenv, python, rest-api, template
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a cookie cutter for Falcon with Falcon-Auth using JWT Authentication on Python 3.7 (rc-stretch) in a Docker container.
`.env` needs to have a secret key, which can be any string. It is included here, but is in the .gitignore file, anyone using this should __be sure not to commit the file.__
Requirements
============pipenv, Docker 2+, Docker-Compose
Nice to have
============Not absolutely required, but for ease of use: and an environment that can run `make` and `bash`.
Usage
=====To try it out, run
make build; make run
curl localhost:5000 token
curl -H "authorization: jwt yourtokenfromthelaststephere" localhost:5000
There are three Python scripts in `tools/scripts/jwt` to request a token, decode a token, and one that does both. To use the decoder, pipe the token to `decode.py`. (`echo $TOKEN | python3 decode.py`)License
=======Do whatever you want with it.
Contributing
============If I did something wrong or there is room for improvement please make an issue or a pull request.