Spring Security Registration and Login Application Tutorial [2023]

preview_player
Показать описание
If you enjoyed this video, then please 👍LIKE and SUBSCRIBE this channel & press the bell icon for future videos. Thank you.

Learn how to build a secure Spring Security Registration and Login Application in this step-by-step tutorial. This video covers the implementation of user registration, login functionality, and password encryption using Spring Security. Whether you're a beginner or an experienced developer, this tutorial will guide you through the entire process, providing valuable insights and best practices for creating a robust authentication system.

🚀 Timestamps:

00:00 Introduction
00:16 What You will Learn
00:58 What you will build
02:07 Technologies Used
02:24 Registration Channel Architecture
02:44 Initializing Spring Boot Project in STS
03:44 Adding Depencies
04:41 Checking Iniatialized Project
06:30 Configuring MySQL Database
11:26 Creating Registration JPA Entity
17:15 Checking and Refreshing Database
17:55 Creating Repository
20:23 Creating UserService Interface
22:30 Creating User Dto
24:58 Creating UserService Implementation
25:48 Implementation of the findByusername & save methods
28:57 Creating Controller Class
29:34 Creating endpoint for for home, login, and registration
34:16 Application Front-end (Thymleaf registration and login form)
51:38 Adding Model Attribute to the Controller
54:29 Testing our registration form
55:00 Creating User Dashboard with HTML/CSS
56:57 Creating Security Cofiguration Class
58:37 Adding Security Filter Chain (Securing endpoint)
1:06:34 Creating Custom UserDetails
1:11:31 Creating Custom User Details Service
1:13:09 Implementing Load by Username Method
1:18:47 Adding Custom User Details Service to Security Config
1:21:35 Creating a Bean of password Encoder
1:22:44 Encoding User Password with BCrypt Password Encoder
1:24:12 Implementation of home and registration methods in the controller
1:29:35 Testing the Registration Page
1:33:54 Testing the login Page
1:41:08 Adding the logout features
1:42:48 Testing the logout features
1:44:05 Adding Validation
1:48:49 Testing the validation
1:49:06 Testing the whole application

What you will learn
1. how to build spring MVC application using spring
2. how to configure spring security
3. spring security authentication with user details and userdetailsservice
4. how to develop login and registration
5. spring logout features
6. how to configure MySQL database in spring boot
7. how to display authenticated user information using user details and principal interface
8. how to use steam link attribute to receive and display user information

Important Video Links
1. Introduction to JSON Web Token in Java

2. Admin and User Registration in Spring Boot with Spring Security

3. Login and Registration Application with Spring Security

4. Spring Security Tutorial Series Bigginer to Advance

5. User Registration Form Using Spring Boot + MySQL Database + Thymeleaf + Spring Data JPA

6. Spring Boot JWT Authentication and Authorization: JWT + Spring Security [NEW]

7. Spring Boot Multi-Factor Authentication (MFA) with SMS OTP Token (One Time Password)

8. Forgot Password Spring Boot Tutorial Example

9. Cross-Origin Request Sharing (CORS) with Spring Boot and Spring Security

10. Spring Security Roles and Authorities Explained - Spring Boot Security

11. Spring Boot Form Validation | Password and Email Validation | Displaying Validation Error [NEW]

12. Spring Boot Tutorial 2023: Spring Boot for Beginners

13. OAuth2 + Spring Boot + Spring Security | Essential Guide [NEW]

Other Links

X Account:

#Spring_security_registration_and login_tutorial
#Registration_and_login_in_spring boot
#User_Registration
#user_login
#registration_and_login
Рекомендации по теме
Комментарии
Автор

This is awesome, do you think you could tie it to Angular? Probably one of the best explanations on Youtube. You went at a good pace instead of like everyone else who talks way to fast for me to follow along lol. Thank you for this video!

marinemanga
Автор

Hi mate, Your work is amazing! Simple and easy to understand. Could you please do a course of creating E-commerce application using Springboot framework, React and Tailwind CSS. Cheers champion. You are a legend!

Tassafari
Автор

your video is in very detailed...so please made more videos on spring boot jwt authentication and role base authorisation and authentication...!!

rajnikant
Автор

Hi sir, I'm from "INDIA, DELHI"

First of all your videos are too easy and simple way...that's why a beginner to pro level developers easily understand...so thank you so much for this type tutorial!

And again thank you for using "Thymeleaf" as frontend because using of Thymeleaf become more easier to understand actual concept that what happened in backend as well as frontend...so please always use thymeleaf in your tutorial.

Request:
Please making videos on different types relationship like one to many, many to one, one to one etc using thymelefeaf that's we understand actual relationship in frontend page also!!

please make "CRUD" operation using relationship in thymeleaf...please use all relationship.

please also make videos on pagination and shorting!!

please also make videos on how to download Pdf, Excel and others files from mysql database.

please also make videos on file/image/pic upload and downloading.

please make videos on "Crud" operation using file/image/pics and also implement in this crud relationship and spring security!

please make advance project using spring boot and frontend using thymelefeaf.

Thanks a lot
Love from INDIA, Delhi.

rajnikant
Автор

with these above video. how to do file storage system in spring boot for many user by authentication login and session so authorized user can see only thier files here the usecase is user can store thier file and can retrive thier files when needed

_cse_shriramr
Автор

How about creting an admin panel with access to create, delete and edit user datas?

athul
Автор

Hello, I was wondering to add image on user.html but the image doesn’t load please give me a solution.
I used normal html <img src=“path/filename” method but it doesn’t work

abrarkarim
Автор

Pls help me with these and make video regarding these .and make video of project reloted to one to one, one to many, many to one relation ship

_cse_shriramr
Автор

please make relationship video like one to one, many to one etc on real-time basis showing into theymeleaf as a front end use...must use theymeleaf please...!!

rajnikant
Автор

Can you tell me why I am not getting register form which is under the templates, plz help

soumyamondal
Автор

Can you validate each fields while registering?

jerrymy
Автор

Hi, I am doing as you do but unable to go to register page after login.

sunnat-e-muhammad
Автор

Please, Let's help me how to write code in React

thanhtrongtoeic
Автор

Can you drop your github link for referal purposes

cmtmeyx
Автор

Could you please share the source code or git link, that i could download code .

dailyclouds
Автор

What if user forget password.how he can reset

vishwapatel
Автор

Hi sir, I'm from "INDIA, DELHI"

First of all your videos are too easy and simple way...that's why a beginner to pro level developers easily understand...so thank you so much for this type tutorial!

And again thank you for using "Thymeleaf" as frontend because using of Thymeleaf become more easier to understand actual concept that what happened in backend as well as frontend...so please always use thymeleaf in your tutorial.

Request:
Please making videos on different types relationship like one to many, many to one, one to one etc using thymelefeaf that's we understand actual relationship in frontend page also!!

please make "CRUD" operation using relationship in thymeleaf...please use all relationship.

please also make videos on pagination and shorting!!

please also make videos on how to download Pdf, Excel and others files from mysql database.

please also make videos on file/image/pic upload and downloading.

please make videos on "Crud" operation using file/image/pics and also implement in this crud relationship and spring security!

please make advance project using spring boot and frontend using thymelefeaf.

Thanks a lot
Love from INDIA, Delhi.

rajnikant