Tornado with JSON Web Token example
Switch branches/tags
Nothing to show
Clone or download
Paulo Leonardo Vieira Rodrigues
Paulo Leonardo Vieira Rodrigues �Tornado JSON Web token
Latest commit ba2a4d4 Aug 11, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates �Tornado JSON Web token Aug 11, 2017
.gitignore �Tornado JSON Web token Aug 11, 2017
auth.py �Tornado JSON Web token Aug 11, 2017
main.py �Tornado JSON Web token Aug 11, 2017
readme.md �Tornado JSON Web token Aug 11, 2017

readme.md

Tornado JSON Web Token example

www.codekraft.co

Generate a new token: http://localhost:8888/auth

Request test:

  • Using the Postman and a "get method" request on http://localhost:8888 with this header: Authorization:bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzb21lIjoicGF5bG9hZCIsImV4cCI6MTUwMjQ3Mjk5OX0.mTAC5izCCqE71jLWyGQtJRhbj12I79M7qBxbIrieSiE1

  • replace token with your generated token

Requirements:

PyJWT 1.5.2 Tornado 4.51 Python 3.6

Codekraft - Paulo Rodrigues