Skip to content

This project aims to develop a robust and secure login authentication system using Django, a high-level Python web framework, in conjunction with Django Ninja, a fast, easy-to-use API framework. The system will be designed to handle user authentication processes efficiently and securely, providing a seamless user experience.

License

Notifications You must be signed in to change notification settings

siddharth9805/Django-Ninja-JWT-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Login Authentication in Django Ninja Framework using JWT

This project demonstrates the implementation of user authentication using the Django Ninja framework and JSON Web Tokens (JWT). It provides a basic yet comprehensive setup for securing your Django applications with JWT-based authentication.

Table of Contents

Introduction

The project aims to provide a straightforward example of implementing JWT authentication in applications developed with Django and the Django Ninja framework. It covers user authentication, token generation, and verification processes, ensuring secure access to application resources.

Installation

  1. Clone this repository.
  2. Install the required dependencies:
  3. Migrate the database:
  4. Run the development server:

Usage

After installation, you can access the application through the development server's URL, typically http://127.0.0.1:8000/. The API endpoints for user registration, login, and secure access will be available as defined in the project's URL configurations.

Features

  • User registration and login endpoints.
  • JWT token generation and verification.
  • Secure access to API endpoints with JWT authentication.

Dependencies

This project requires the following packages:

  • Django
  • Django REST Framework
  • Django Ninja
  • PyJWT

Configuration

Configure the project settings in settings.py, including database configurations, secret keys, and Django Ninja settings. Ensure the JWT authentication settings are correctly set up in ninja_jwt/authentication.py.

Documentation

For further documentation on the Django Ninja framework and JWT authentication, please refer to the following:

Examples

Example usage of the authentication system can be found in ninja_jwt/api.py. This includes how to define secure endpoints and authenticate requests using JWT.

Troubleshooting

For common issues related to Django or JWT authentication, consult the official documentation or the project's issue tracker.

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for more details.

About

This project aims to develop a robust and secure login authentication system using Django, a high-level Python web framework, in conjunction with Django Ninja, a fast, easy-to-use API framework. The system will be designed to handle user authentication processes efficiently and securely, providing a seamless user experience.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages