Token authentication for your Flask applications
- Python 100%
| examples/simple_example | ||
| .gitignore | ||
| Flask-Tokens.sublime-project | ||
| flask_tokens.py | ||
| LICENSE | ||
| README.md | ||
| setup.py | ||
| tests.py | ||
Flask-Tokens
Token authentication for your Flask applications, built on top of PyJWT.
Why tokens?
In a normal web application, you'd authorize the user via sessions and cookies, presumably using something like Flask-Login or Flask-Security.
But what do you do when your clients aren't users in a web browser, but applications communicating with you as an API? You give them access tokens, is what.
JWT stands for JSON Web Tokens, and is a proposed standard for secure, verifiable tokens, that can carry any data that can be represented as JSON.
Flask-Tokens encapsulates authentication using JWT tokens in a Flask application.
How do I use it?
Detailed usage information will be added soon, for now, have a look at the examples.