Skip to Main Content
Python API Development Fundamentals
book

Python API Development Fundamentals

by Jack Chan, Ray Chung, Jack Huang
November 2019
Beginner to intermediate content levelBeginner to intermediate
372 pages
6h 24m
English
Packt Publishing
Content preview from Python API Development Fundamentals

4. Authentication Services and Security with JWT

Learning Objectives

By the end of this chapter, you will be able to:

  • Apply your knowledge of JWT
  • Create an access token using Flask-JWT-Extended
  • Develop a membership login system
  • Implement an access control system (authentication and permissions)
  • Work with a refresh token
  • Restrict access using a blacklist

This chapter covers how to develop a user login/logout function using JWT.

Introduction

In the previous chapter, we completed the database setup and configuration and linked the database to the code using ORM. We then implemented the user registration API on top of that. This chapter is divided into four parts. The first part is about authenticating the user and allowing them to log ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Build REST APIs with Django REST Framework and Python

Build REST APIs with Django REST Framework and Python

Shubham Sarda
The Complete Python Course

The Complete Python Course

Jose Salvatierra Fuentes, Codestars By Rob Percival

Publisher Resources

ISBN: 9781838983994Supplemental Content