Skip to content

abdallah-9a/drf-auth-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication API with Django Rest Framework and Simple JWT

This project is an Authentication and User Management API built with Django Rest Framework and Simple JWT.
It includes features such as user registration, login, logout, profile management, password change, password reset through email, and admin-only endpoints.

Features

  • Custom User registration
  • User login & logout with JWT authentication
  • View & update user profile
  • Password change for authenticated users
  • Password reset through email (with token validation)
  • Duplicate email validation & expired token handling
  • Admin endpoints for user management

API Reference

URL Method Description
api/user/register/POSTRegister a new user
api/user/login/POSTUser login with credentials and JWT token
api/user/logout/POSTLogout and blacklist refresh token
api/user/profile/GETGet logged-in user profile
api/user/profile/update/PUTUpdate logged-in user profile
api/user/changepassword/POSTChange user password (authenticated)
api/user/send-reset-password-email/POSTSend reset password email
api/user/reset-password/<uidb64>/<token>/POSTReset password using token
api/admin/users/GETList all users (admin only)
api/admin/users/<id>/GETRetrieve specific user by ID (admin only)

Contributing

Contributions are welcome. Please fork the repository and create a new branch for your feature or bug fix. Once you have made your changes, submit a pull request and your changes will be reviewed.

About

Authentication and User Management API built with Django Rest Framework and Simple JWT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages