Django & React JWT Authentication Part 1 - Overview

preview_player
Показать описание
🔥 Subscribe to my YouTube + Turn on Notification Bells!

Hey, Bryan here. I share videos that help web developers up their development skills!

Today I'll be sharing an overview for an authentication system that I will help you implement using React, Redux, and Django with the Django Rest Framework. I will also be using Bootstrap 4 for the styling in the application.

This is going to be an authentication system with some awesome production level features:
1. You will see how to customize the Django User Model.
2. You will see how to make it so that users are required to verify an account before they can log in.
3. You will see how to allow users to have the ability to reset their password if they forgot the password they signed up with.
4. You will learn how to implement these features using the JSON Web Token authentication scheme.
5. You will learn how to use the Djoser library in order to implement all these awesome features and easily be able to implement even more awesome production level authentication features!

In this part, I will be doing an overview of the application we will be building and going over some of the different features and functionalities that will be implemented.

To stay up to date with the best web development content, make sure you subscribe to My YouTube channel Today!

Рекомендации по теме
Комментарии
Автор

I am running into a "Unauthorized: /auth/users/" error when I try to signup new user

snrikhotso
Автор

This is awesome series. Please give me suggest how to work from windows ..

nomanislam
Автор

In this change password function is addede or not ? If nt how to make ?

vaibhavboraganve
Автор

Hi BD,
I must say honestly that your tutorials are just GREAT, PRACTICAL and JUMP TO THE POINT.
Therefore, this is the BEST EVER tutorials that I HAVE EVER SEEN.
So, thanks so much for teaching me and many other Django-React lovers.
I wish you are well there and keep away from Covid-19.
Good luck and all the best.

I am Nyoman, from Bali, Indonesia

sangkakala
Автор

Can you make video on after login user, we can fetch user details and show name and pic of user in navbar .
Then fetch data according to user logging.
Currently I am making notes website but I don't know how to fetch notes according to login user...
Plz make video on this. I am waiting

Meshv_patel
Автор

Can I use Djoser for django=3.2.2
and djangorestframework=3.12.4?

ishikajain
Автор

Stuff is very good but you should teach the code too. I see in your videos you only focused on writing the code but don't tell that what that code will do. I have experience in React js and want to learn backend with django.

awaisraza
Автор

Thank you! Could you please show how to require admin approval so admin receives an email to approve user before they can login?

yasayah
Автор

This seems amazing as well! Will try next

skuramchi_
Автор

Will watch this series too. Stuff is so good.

chiragsainii
Автор

Great video! The content and teaching style are great. Your code is as well very professional. Thanks for sharing.

mohsenshahriari
Автор

Great video! Excited to go through this tutorial. Keep up the great content!

atucobiodhungel
Автор

3 years ago, and youre still taking me to school

localhost
Автор

Your videos helped me to pass my first internship. thank you so much.

just-soccergame
Автор

This seems a great Series! I want to know one thing before starting that on page load, or on-page refresh, is the user logged out? Like your first series (Django React Full Stack Real Estate App).

s.m.asifal-samy
Автор

Great videos, can you show how to manage roles

OkorieEmmanuel
Автор

Could you tell me the difference between this series and the previous series Django & React Session Authentication

shn
Автор

Can I continue this series with the default sqlite database? Would it affect anything?

primeshare
Автор

Sir, How to get api data after logged in? I got unauthorized

vuthyyib
Автор

HI Bryan Great video

i followed your step by step and added a mobile phone field. but when i try to register user i get this erorr message. create_user() missing 1 required positional argument: 'mobile'.

My Model is :
from django.db import models
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager



class
def create_user(self, email, first_name, last_name, mobile, password=None):
if not email:
raise ValueError('Users must have an email address')

email = self.normalize_email(email)
user = self.model(email=email, first_name=first_name, last_name=last_name, mobile=mobile)

user.set_password(password)
user.save()

return user


class UserAccount(AbstractBaseUser, PermissionsMixin):
email = models.EmailField(max_length=255, unique=True)
first_name =
last_name =
mobile =
is_active =
is_staff =


objects = UserAccountManager()

USERNAME_FIELD = 'email'
REQUIRED_FIELDS = ['first_name', 'last_name']

def get_full_name(self):
return self.first_name

def get_short_name(self):
return self.first_name

def __str__(self):
return self.email


{
"first_name": "Elyas",
"last_name": "Naimzada",
"password": "503748en",

"re_password": "503748en",
"mobile": "010100101"
}

elyasnaimzada