Project-Stage-Academy / UA1198ForumSB

UA-1198 Project Stage Forum SandBox
0 stars 0 forks source link

Set Up JWT Authentication in Django #14

Closed mehalyna closed 1 week ago

mehalyna commented 2 weeks ago

Objective: Integrate JWT authentication into the Django project for secure user authentication.

Sub-Tasks:

  1. Install Required Packages:

    • Install packages like djangorestframework-jwt or djangorestframework-simplejwt.
  2. Configure Settings:

    • Update the Django settings to include the JWT authentication class in the DEFAULT_AUTHENTICATION_CLASSES.
  3. JWT Settings Configuration:

    • Configure JWT settings, like token expiration time, token refresh, and secret key.

https://djoser.readthedocs.io/en/latest/getting_started.html

US: #1