This tutorial takes a test-first approach to implementing token-based authentication in a Flask app using JSON Web Tokens (JWTs). JSON Web Tokens (or JWTs) provide a means of transmitting information from the client to the server in a stateless, secure way.
Flask (web framework) Flask is a micro web framework written in Python and based on the Werkzeug toolkit and Jinja2 template engine.
Excellent and long tutorials You will learn:
- the benefits of using JWTs versus sessions and cookies for authentication
- implement user authentication with JWTs
- blacklist user tokens when necessary
- write tests to create and verify JWTs and user authentication
- practice test-driven development
Previous knowledge of Python and git (all code in repo) will be needed to follow this tutorial.
[Read More]