JWT | Spring boot & Angular | User Login & Registration with Email validation | Full tutorial

preview_player
Показать описание


Recommended Courses:

CONNECT WITH ME:

👍 Don't forget to like, subscribe, and hit the bell for more tech tutorials. Let's code together – see you in the tutorial!

Table of content
00:00 Intro
03:43 The mono repo approach
04:50 Create a new Spring boot project
10:01 Add final dependencies
12:14 Prepare the infrastructure with Docker Compose
20:12 Configure the project
31:29 Spring security Overview
37:02 Create the user entity
47:32 Create the Role entity
52:00 Implement user and role repositories
54:12 Create the Token entity and repository
57:51 Implement the security configuration class
01:08:21 Implement the Authentication provider
01:13:26 Implement the User details Service
01:15:48 Implement the JwtFilter class
01:22:21 Implement the JwtService class
01:39:02 finalize the JwtFilter class
01:44:41 Create the authentication controller
01:54:08 Implement the register method
02:05:26 Implement the Email sender service
02:24:41 Test the registration
02:31:21 Implement the login method
02:40:24 Implement the activate account method
02:45:45 Test the full authentication flow
02:50:09 Exception handling
03:08:06. Create the angular application
03:18:01 Generate the HTTP Services using the power of OpenApi
03:33:15 Implement the Login page
04:05:56 Implement the Registration page
04:15:06 Implement the activate account Page
04:32:02 Outro
Рекомендации по теме
Комментарии
Автор

One of the youtubers who does his jobs with pleasure and enthusiasm. Thank you so much

restonspositifs
Автор

The best course I have seen on implementing login in spring boot.

egbe-iyonmichael
Автор

The best guy in the community java. You have no idea how much you are helping the newbies.

shadownight
Автор

Salam and Love from Bangladesh 🇧🇩. May Allah reward you sir.

olymahmud
Автор

friend i can't wait for the next tuto that you talk about, i'm so excited <3 <3

youssefnajjar-sd
Автор

Really thank you from the bottom of my heart

lorenzociarcianelli
Автор

Muchas gracias por todo el material .
Saludos desde 🇨🇱

CristopherVergaraColombo
Автор

Great video!
You just got a new subscriber

stanleynyekpeye
Автор

¡¡¡Great video¡¡¡ For me it's a little confusing when we beguin creating the Angular project because there are not some files

juliansnei
Автор

I would not follow this tutorial as there are several resources out on the internet that recommends against using JWTs as sessions. With his solution you are vulnerable to token redirect attacks, XSS token stealing attacks, you cant logout the user (deleting the token in the front end does not mean you are logged out) and lets say the user wants to change his password, well you cant logout the user and invalidate tokens so you are screwed.

Lets say your password leaks, someone else logs into your account. You login to change the password and lock the malicious actor out, well to bad you cant invalidate the session, so the bad guy is still logged in.

There is a reason as to why spring security does not have a built in JWTFilter per default, because it is dangerous. I would not recommend this tutorial, as none of what he is showing is in the docs, and it is even not part of the spring security recommendations. If you want to actually build proper security look into the BFF pattern instead, because this is dangerous.

I would link to several resources, but if i do youtube deletes the comment because you are not allowed to link in comments.

thomasandolf
Автор

Excellent video, thank you very much, I was able to replicate all the content successfully. Greetings.

magadiflo-dev
Автор

Thank you so much sir. 😭😭 There are very less people who make spring boot courses on YouTube but they too cost money but you are doing it for free. Thank you 🙏🙏 🥹

mohammadasif
Автор

nice video, very interresting for and new comers

kennegervais
Автор

Your videos are very helpful for me, you said about upcoming videos, i'm so exited, if possible make fullstack application using spring and react

jeevaathecoder
Автор

i wish to see a beginner java course here, hit like if u agree 👍 !!

datadriveAshura
Автор

I am not even going to talk about the Spring specifics in the video (which I find amazing by the way, I am learning Spring and I learned so much). What I like the most is that you actually follow good practices all along, so you're teaching both Spring and spreading good Java development practices. Thumbs up brother

n_lisper
Автор

good video! very helpfull ! but i notice allmost in all the tuto using postgres, i would love to see more mongodb ? in fact i didnt find a video using mongodb with refraiche token ! other than that thank you for the video this is the best youtube chanel to learn spring boot !

rayensaadallah
Автор

Very good! Wonderful tutorial video again.
I hope that you take full practice video which we use web-socket security spring boot real application.I am gladly if this video above 10hours.

emilbeyerov
Автор

Very cool we are waiting for the remaining 😢😢😢

bossohmichel
Автор

We need a docker and k8’s video with a demo of hosting a microservice and managing it.

Shashank