Spring Security JWT: User Sign Up + Login with Email Verification in Spring Boot

preview_player
Показать описание
In this comprehensive tutorial, I will guide you through the process of setting up secure user authentication in a Spring Boot application. You'll learn how to implement user registration, login, and email verification using JWT (JSON Web Tokens). We'll cover essential security configurations with Spring Security, enabling you to protect your application with robust authentication mechanisms. By the end of this tutorial, you'll have a fully functional authentication system, complete with JWT handling and email verification, ready to be integrated into your Spring Boot projects.

🔍 GitHub Code

👨‍💻 Join Our Software Developer Community TODAY

🚀 Exclusive Offers:

#java #javaproject #springboot #springboottutorial #springsecurity #jwt #authentication #emailverification #javadevelopment #backend #backenddevelopment #websecurity #codingtutorial #springboottutorial #codingtutorials #codingprojects
Рекомендации по теме
Комментарии
Автор

How is the workflow with .env file in prod, dev, stag, Specially cd/ci pip, git.ignor and where do you save the .env templat?

Sebastian-zscp
Автор

Is this the new Spring Security? Literally every tutorial on yt is depreciated 😭

andiuptown
Автор

I was learning from this video and things were ok. And when you started coding JwtService class, I totally lost and can't make any sense of the things. May be this is because I don't know how things work and which classes to call and which functions to override in order to establish security for our application. My concern and wish is that I want to learn that thing which you know to write this whole JwtService class. Because, it is only usable for a person who already have similar level of knowledge as you already have. Please share that from where should I start and what should I learn in order to understand this whole thing and that can make me capable of writing the security classes for my applications.

Note: I know the basics and understand the workings of the Spring boot so that's not a problem. But I have no idea how to plan the whole security of the application and how to implement it. I've no idea of the provided classes and how to use them together to come up with JwtService type of classes. Please help, I'd be really appreciate and grateful to you.

la-dev
Автор

holy hell this is complicated. Just a login functionality takes so much.

TejasShastri-lhmq
Автор

I am using spring version 2x so i cannot use claim in jwtService whenever u used them so do u have any repo so i can refer to

quoteslife
Автор

Hey Good Video bro !
But i have a question that why you dont use @Autowired for injecting the values

EazyJavaLearning
Автор

Why did you choose to build the project as Gradle - Groovy instead of Maven?

franznatavio
Автор

Bro could you recommended good resources to learn Java then Spring boot the best one

EugeneKoech
Автор

It's the old way of introducing JWT and isn't the best tbh. Spring Security features built in Oauth2 support. You can achieve same result with a few lines of code in configuration file. It also includes bunch of other features like different types of tokens, use of PKCE, refresh tokens and so on. I would suggest to start with understanding of OAuth 2.1. Because JWT by itself doesn't bring security to your application. JWT is just a type of token which is used for authorization.

avhhust
Автор

Hello ..your github code i cant access most of file because its extenstion is .class can you make it .java so i can see

quoteslife
Автор

It's all sounds great, but when you sent request to /users/me you got 200 OK, but with no body, it should return 200 OK and body with info about current user

learning