SKsanjana kansalinsanjana.hashnode.dev·Jul 27, 2023 · 2 min readStep-by-Step JWT Authentication Implementation in Python - Part 3To understand how to use the tokens for authentication, let's create a middleware.py file in the app. This middleware will be responsible for handling token-based authentication and securing the protected routes. from django.utils.deprecation import ...00
SKsanjana kansalinsanjana.hashnode.dev·Jul 27, 2023 · 2 min readStep-by-Step JWT Authentication Implementation in Python - Part 2Let's deep dive into creating the Login API. Update the validations.py. class LoginSchema(Schema): username = fields.Str(max_length=255) email = fields.Str(max_length=512, required=True) password = fields.Str(max_length=512, required=Tru...00
SKsanjana kansalinsanjana.hashnode.dev·Jul 27, 2023 · 4 min readStep-by-Step JWT Authentication Implementation in Python - Part 1In this article, we will explore the concept of JWT authentication and learn how to implement it using PyJWT. Prior knowledge of Django and API building in Django is necessary to understand this article. JWT (JSON Web Token) is a token-based authenti...00