krise3k and jmcs Add support for JWT authentication (#732)
* Add support for JWT

* Add example for JWT

* Add minimal JWT documentation
Latest commit 6ec1182 Nov 12, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.rst Add support for JWT authentication (#732) Nov 12, 2018
app.py Add support for JWT authentication (#732) Nov 12, 2018
openapi.yaml Add support for JWT authentication (#732) Nov 12, 2018
requirements.txt Add support for JWT authentication (#732) Nov 12, 2018

README.rst

JWT Auth Example

Running:

$ sudo pip3 install -r requirements.txt
$ ./app.py

Now open your browser and go to http://localhost:8080/ui/ to see the Swagger UI. Use endpoint /auth to generate JWT token, copy it, then click Authorize button and paste the token. Now you can use endpoint /secret to check autentication.