No video

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

  Рет қаралды 4,840

SWErikCodes

SWErikCodes

Күн бұрын

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
For all source code, check out my repository: github.com/Eri...
👨‍💻 Join Our Software Developer Community TODAY
For the best coding resources, professional resume reviews, expert mock interview prep and more, join my thriving community! Don't miss out on the opportunity to elevate your coding skills and career: www.subbb.me/s...
🚀 Exclusive Offers:
For more exclusive offers, like a Software Development Certificate, check out my LinkTree: linktr.ee/swer...
#java #javaproject #springboot #springboottutorial #springsecurity #jwt #authentication #emailverification #javadevelopment #backend #backenddevelopment #websecurity #codingtutorial #springboottutorial #codingtutorials #codingprojects

Пікірлер: 48
@timothysuldayan5294
@timothysuldayan5294 Күн бұрын
yoooo bro you're absolutely goated
@Jonas636_
@Jonas636_ 10 күн бұрын
Thank you, straightfoward to the point!! Greetings from Brazil.
@andiuptown1711
@andiuptown1711 Ай бұрын
Is this the new Spring Security? Literally every tutorial on yt is depreciated 😭
@SWErikCodes
@SWErikCodes Ай бұрын
Yep! Fully functional
@andiuptown1711
@andiuptown1711 Ай бұрын
@@SWErikCodes Bet 🫡. Thanks again!
@gadstam8223
@gadstam8223 8 күн бұрын
Could you create a tutorial or provide an explanation on how to deploy this API on a hosting service like Railway? Amazing video, really usefull!
@SWErikCodes
@SWErikCodes 8 күн бұрын
I did! Check out my video “how to put a coding project online”
@Dark-wu6gr
@Dark-wu6gr Ай бұрын
You deserve more views bro
@SWErikCodes
@SWErikCodes Ай бұрын
Glad to hear you like the content!
@Sebastian-zs8cp
@Sebastian-zs8cp 28 күн бұрын
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?
@juanliendo6652
@juanliendo6652 8 күн бұрын
you have to duplicate the .env file, delete all the private information leaving only the field's name and rename it to .envtemplate
@christophercyriac1744
@christophercyriac1744 8 күн бұрын
So is your jwt token encrypted so nobody random can decode it and get access to the information information in the token? They would need to use the secret key to decode it in order to get all the information?
@faresabbes5739
@faresabbes5739 9 күн бұрын
i get a 403 error whenever i try to login
@patrykcygnar1353
@patrykcygnar1353 Ай бұрын
Good Job bro!
@SWErikCodes
@SWErikCodes Ай бұрын
Glad to hear you liked the video!
@EazyJavaLearning
@EazyJavaLearning Ай бұрын
Hey Good Video bro ! But i have a question that why you dont use @Autowired for injecting the values
@SWErikCodes
@SWErikCodes Ай бұрын
You can use constructor based injection or @autowired both should work!
@TejasShastri-lh2mq
@TejasShastri-lh2mq 29 күн бұрын
holy hell this is complicated. Just a login functionality takes so much.
@SWErikCodes
@SWErikCodes 29 күн бұрын
Haha ikr
@kabingiri119
@kabingiri119 Ай бұрын
Great Job Bro
@SWErikCodes
@SWErikCodes Ай бұрын
Glad to hear you enjoyed!
@franznatavio868
@franznatavio868 Ай бұрын
Why did you choose to build the project as Gradle - Groovy instead of Maven?
@SWErikCodes
@SWErikCodes Ай бұрын
Gradle is designed with embedding in mind and it has great work avoidance functionality to improve the load on my server
@SWErikCodes
@SWErikCodes Ай бұрын
Doesn’t really matter all that much though
@franznatavio868
@franznatavio868 Ай бұрын
So at the end the difference isn’t that much, right? Means that I can build the same project with maven?
@SWErikCodes
@SWErikCodes Ай бұрын
Yes exactly, and as far as I know the only code that changes is the build file
@la-dev
@la-dev 25 күн бұрын
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.
@TheGamer-uv7yd
@TheGamer-uv7yd Ай бұрын
You got a sub. 👍
@SWErikCodes
@SWErikCodes Ай бұрын
Welcome to the channel 💪
@learning885
@learning885 Ай бұрын
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
@SWErikCodes
@SWErikCodes Ай бұрын
You could customize it for sure
@CodewithAby
@CodewithAby 29 күн бұрын
@learning885 @Override public String getUsername() { return email; } add this override in the user entity
@quotes4life833
@quotes4life833 Ай бұрын
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
@mohammadbakeer4247
@mohammadbakeer4247 Ай бұрын
perfect
@SWErikCodes
@SWErikCodes Ай бұрын
Glad you enjoyed it!
@avhhust
@avhhust Ай бұрын
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.
@andiuptown1711
@andiuptown1711 Ай бұрын
Is there a better tutorial or blog out there?
@avhhust
@avhhust Ай бұрын
@@andiuptown1711 Check out @laurspilca. He has many tutorials on Spring Security, especially on Oauth2 in Spring
@andiuptown1711
@andiuptown1711 Ай бұрын
@@avhhust ah the one that wrote Spring Start Here? Thank you!
@EugeneKoech
@EugeneKoech Ай бұрын
Bro could you recommended good resources to learn Java then Spring boot the best one
@SWErikCodes
@SWErikCodes Ай бұрын
I recommend "Java Programming and Software Engineering Fundamentals" on Coursera (audit the course for free) or anything from freecodecamp on YT for Java. For SpringBoot watch Amigoscode he is the absolute goat.
@quotes4life833
@quotes4life833 Ай бұрын
Hello ..your github code i cant access most of file because its extenstion is .class can you make it .java so i can see
@SWErikCodes
@SWErikCodes Ай бұрын
The code is all .java , head to demo src main Java com example demo and you’ll find the entire code
@pixelatedlava
@pixelatedlava 2 күн бұрын
This is a lot of work :,c
@SWErikCodes
@SWErikCodes 2 күн бұрын
Haha ikr
@JacksonEdward-h5i
@JacksonEdward-h5i 10 күн бұрын
Thomas Elizabeth Lopez Scott Robinson Deborah
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 565 М.
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 46 МЛН
software engineer building a startup - rejected by vc
6:15
Daw-Chih Liou
Рет қаралды 3,2 М.
Interview with Product Manager in 2024 [Corporate]
5:53
Programmers are also human
Рет қаралды 351 М.
What Makes A Great Developer
27:12
ThePrimeTime
Рет қаралды 185 М.
the reality of coding a $50M startup
8:31
SWErikCodes
Рет қаралды 22 М.
Spring Security 6 with Spring Boot and JWT Tutorial
3:14:14
Telusko
Рет қаралды 40 М.
pov: you're a 20 year old software engineer building a startup
9:33