Admin and User Registration and Login Application with Spring Data JPA and MySQL Database

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

Admin and User Registration and Login Application

Learn how to build a secure Spring Security Registration and Login Application with User and Admin Pages in this step-by-step tutorial. This video covers the implementation of user registration with User and Admin by implementating AuthenticationSuccessHandler interface, and has authourity method to distribute permission across users, 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:15 What You will Learn
01:08 User and Admin Registration Channel
01:54 Application Architecture
02:20 What you will build
05:31 Creating new Spring starter Project
07:00 Adding Dependencies
07:54 Checking the initialized Project
09:13 Configuring MySQL Database
11:32 Creating JPA Entity (Model Class)
16:56 Back-end Implementation for Registration
17:17 Testing MySQL Database Config
19:59 Creating repository
21:49 Creating UserSerive Interface
23:21 Creating User Dto
25:07 Adding Dto to UserService interface
25:55 Implementing UserService Interface
30:38 Creating User Controller
31:07 creating endpoint for registration
36:45 front-end implementation for registration
53:14 Testing the registrion page
54:21 Spring Security Configuration
54:37 Creating CustomUserDetails
55:36 Implementing UserDetails interface
58:31 Creating CustomUserDetailsService
59:44 Implementing loadByUsername method
1:05:43 Encoding User Password
1:07:06 Creating Security Configuration Class
1:08:31 Adding BCrypt Password Encoder Bean
1:09:52 Configuring Endpoint
1:20:39 Registering Password Encoder and UserDetailService
1:23:38 Login method handler in Controller
1:24:50 Front-end for login
1:28:23 Testing the login implementation
1:31:59 Creating Custom Success Handler
1:36:15 Adding Custom Success Handler to Security Config
1:37:19 Giving Access Permission
1:38:13 Creating Admin and User Dashboard
1:46:57 Testing the project

What you will learn
1. how to build spring MVC application using spring
2. how to configure spring security and implementation of AuthenticationSuccessHandler
3. spring security authentication with user details and userdetailsservice
4. how to develop login and registration for Admin and User
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. implementing Authentication Success handler to redirect User and Admin to different URL (pages)
9. Using hasAuthority Method for access permission to User and Admin Pages

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: Employee Magament System with Spring Boot and Spring Data JPA

12: Spring Boot React Social Networking Application

13: Integrate Spring Boot with React

Other Links

X Account:

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

Video is slow and also Audio quality is poor else this, everything is on point. great content 👌

rohitshukla
Автор

Thank You so much! The only tutorial that works for current version of spring security <3

mikoajjastrzebski
Автор

really sir very very very very helpful video

thesongsof..........
Автор

when I open mySQL work bench and create the table, the table is not there. I followed the code exactly. did anyone experience this and how did you fix it?

Brookistaken
Автор

sir we can use lambok dependency for automate getters and seters

mrchaitu
Автор

Thank you sir!!. For me everything is working fine except the success handler.. aftr entering correct details it redirects to /error

It seems as if the success handler is not working
Can u kindly assist

masekoamin
Автор

I cannot thank u enough!
Just a question ( i want the admin to have acces to the users pages too what should i add?) thanks in advance !

imkawtarr
Автор

Great Thank you,
i have one question here, if i want to hit the post/get request from postman what changes should i make?
Thanks in advance

harishkumarsb
Автор

Hello sir, where u created user details and user details service class?? I'm unable to see ..

rajirajeswari
Автор

in this where is the Postmapping(/login) which you used in login.html file at form tag ????

_b_himanshusharma
Автор

Hello, Sir! Hello guys. Well, I’m writing in a case of issue. I have configured security filter chain, but login request always redirects me to login page. By debugger I can’t get to the point where I should take user info by name from repository. But when I set login by default it works. Maybe someone had same issue ?

Zhurman
Автор

i have a question, each time we register, we need fill in database with field role, it is not convinient

chienphung
Автор

hey my index.html is getting open directly even login page is also working fine.can you help me ?

Hacquees
Автор

How to set the role as USER by default after registration?
Thanks for the video though

zkmmxbj
Автор

Hello sir, Cannot resolve parameter name for user_dto error occurred how to resolve it

eswarreddy
Автор

Hello sir, i didn't catch how you resolve white level error please breif about this

RajeshChauhan-wyyu
Автор

Hello sir we are modifying the role of the person but how can I get user as default when the person is registered

Know_by_AI
Автор

Sir, how to implement forgot password for the above project

weekly_t_e_c_h
Автор

How to fetch, update and delete... please tell 🙌

pratikkhodke