Token authentication for your Flask applications
Find a file
2014-11-02 00:52:59 +01:00
examples/simple_example How do I markdown 2014-10-25 18:02:54 +02:00
.gitignore I'll make my own gitignore, with blackjack and hookers 2014-10-23 19:26:51 +02:00
Flask-Tokens.sublime-project I'm good at this 2014-10-24 00:59:52 +02:00
flask_tokens.py Use JSON for all route requests 2014-11-02 00:52:59 +01:00
LICENSE Initial commit 2014-10-22 21:30:11 +02:00
README.md README 2014-10-25 19:17:35 +02:00
setup.py We only need a single file, really 2014-10-25 13:33:33 +02:00
tests.py Disabled refresh tokens by default 2014-10-25 17:12:39 +02:00

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.