Skip to content

This repository contains a Django project implementing JWT (JSON Web Token) authentication with email confirmation service using Django Rest Framework.

Notifications You must be signed in to change notification settings

sousaGab/django-jwt-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django JWT Authentication with Email Confirmation

This repository contains a Django project implementing JWT (JSON Web Token) authentication with email confirmation service using Django Rest Framework.

Features

  • User registration with email confirmation
  • User login and JWT generation
  • JWT authentication for protected endpoints
  • Email confirmation link with token expiration
  • Password reset functionality via email

Requirements

  • Python 3.x
  • Django 4.x
  • Django Rest Framework 3.x

Installation

  1. Clone the repository:
git clone git@github.com:sousaGab/django-jwt-authentication.git
cd django-jwt-authentication
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Configure the database settings in settings.py.

  2. Apply the migrations:

python manage.py migrate
  1. Run the development server:
python manage.py runserver

Usage

Access the API documentation at {API_URL}/swagger/ or {API_URL}/redoc/.

Configuration

  • Email settings can be configured in settings.py.
  • JWT settings can be configured in settings.py.

Testing

To run the tests, execute the following command:

python manage.py test

About

This repository contains a Django project implementing JWT (JSON Web Token) authentication with email confirmation service using Django Rest Framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages