Build Spring Boot Web Application with JPA, Spring Security
- Description
- Curriculum
- FAQ
- Reviews
In this course students can learn how to develop login and logout feature with spring security by using spring boot web application in easy way.
Key concepts implementation:
Sign Up, login, logout, forgot password, reset password, sending an email to user to reset the password, change password implementation (Spring security 6 + spring boot + MySQL database)
Spring Security is a powerful and highly customizable authentication and access-control framework. It is the de-facto standard for securing Spring-based applications.
Spring Security is a framework that focuses on providing both authentication and authorization to Java applications. Like all Spring projects, the real power of Spring Security is found in how easily it can be extended to meet custom requirements
Features
-
Comprehensive and extensible support for both Authentication and Authorization
-
Protection against attacks like session fixation, clickjacking, cross site request forgery, etc
-
Servlet API integration
-
Optional integration with Spring Web MVC
Authentication :
Spring Security provides comprehensive support for authentication. Authentication is how we verify the identity of who is trying to access a particular resource. A common way to authenticate users is by requiring the user to enter a username and password. Once authentication is performed we know the identity and can perform authorization.
Spring Security provides built-in support for authenticating users. This section is dedicated to generic authentication support that applies in both Servlet and WebFlux environments. Refer to the sections on authentication for Servlet and WebFlux for details on what is supported for each stack.
Authorization :
Spring Security provides comprehensive support for authorization. Authorization is determining who is allowed to access a particular resource. Spring Security provides defense in depth by allowing for request based authorization and method based authorization.
Development features:
Software installation.
Spring boot web project development from scratch.
Bootstrap spring boot web application.
Create Login and Logout , registration, forgot password, change password web pages in easy way.
Understand spring security in easy way.
Understand Authentication and Authorization.
Understand CSRF attack and how attackers can hack web application.
Create User and Roles.
Implement Many to Many relationship between user and roles.
Create spring security custom configuration class.
login application by using static user credentials.
login application by using credentials from database
Ajax calls to validate user exist in database or not.
Forgot password implementation.
Send email with reset password link to end user.
Reset Password web page implementation.
Change password web page implementation and e.t.c.
-
2Download and Install EclipseVideo lesson
In this lecture you can learn how to download and install eclipse
-
3Download and install MySQLVideo lesson
In this lecture you can learn how to download and install mysql
-
4Download and install SQLyogVideo lesson
In this lecture you can learn how to download and install SQLyog graphical interface. It is useful for to execute sql queries.
-
5create spring boot project with spring initializerVideo lesson
1. Understand spring initializr
2. Create spring boot web project
3. Import project in to eclipse
-
6Create LoginController classVideo lesson
In this lecture you can create login controller class and it's execution
-
7Create login web pageVideo lesson
In this lecture you can create login.jsp
-
8Design login web page with bootstrapVideo lesson
download login.jsp source file
-
9Optimize login web pageVideo lesson
Instead of loading css file from website, we can download css file in to spring boot project and refer that file in our login web page
-
10Create User Registration web pageVideo lesson
In this lecture we can design user registration web page
-
11Design User Registration web page with bootstrapVideo lesson
In this lecture we can design our user registration web page with bootstrap
-
12Create home pageVideo lesson
-
13Spring security introductionVideo lesson
In this lecture you can understand what is spring security
-
14Understand spring security execution flowVideo lesson
In this lecture you can understand execution flow of spring security.
-
15Enable spring security to our web applicationVideo lesson
In this lecture you can understand how to enable spring security to our web application and authenticate with default user name (user) and spring security generated password.
-
16Configure static user credentials by using application propertiesVideo lesson
In this lecture you can learn how to configure static credentials in spring security.
-
17Create custom security configuration classVideo lesson
In this lecture you can learn how to create custom security configuration.
-
18Create multiple static user credentials by using custom security classVideo lesson
In this lecture you can create multiple static user credentials by using SpringSercurityCustomConfiguration class.
-
19Enhance defaultPasswordEncoder with BCryptPasswordEncoderVideo lesson
In this lecture encode password by using BCryptPasswordEncoder instead of defaultPasswordEncoder.
-
20Understand JSESSIONID in Spring Security.Video lesson
In this lecture you can understand how spring security is maintaining authentication for subsequent of requests without entering username and password again and again.
-
21Understand CSRF attack in our web application.Video lesson
In this lecture you can understand about what is CSRF attack in our web application
-
22Understand how spring security protecting our web application from csrf attackVideo lesson
In this lecture you can understand how spring security protecting our web application by using csrf token
-
23Display default home page after authenticationVideo lesson
In this lecture you can learn, how to configure default home page for our web application.
-
24Display custom login page instead of default login page of spring securityVideo lesson
-
25Display custom login page as default web page.Video lesson
Display custom login page as default web page.
-
2626. Login web application with custom login page.Video lesson
In this lecture you can learn how to login web application with custom login page
-
27Display login error message in login page for invalid credentials.Video lesson
In this lecture you can learn how to handle login error messages.
-
28Implement logout functionalityVideo lesson
In this lecture you can learn how to implement logout functionality in spring security.
-
29Display logout success message in login pageVideo lesson
In this lecture you can learn how to display logout success message in login page.
-
31Create User and Role entitiesVideo lesson
-
32Create User and Role JPA RepositoryVideo lesson
-
33Create many to many relationship between User and Role EntityVideo lesson
In this lecture you can learn how to create Many to Many relationship between UserEntity and RoleEntity.
-
34Auto generate database tablesVideo lesson
In this class you can learn how to auto generate database tables by using hibernate or jpa
-
35Create DTO and service classesVideo lesson
In this lecture you can learn how to create user dto and service classes
-
36Write logic to send data from registration web page to controller and serviceVideo lesson
-
37User registration web page data validation.Video lesson
-
38Configure user roles in MySQL databaseVideo lesson
-
39Understand about ModelMapper and create ModelMapper componentVideo lesson
In this lecture you can understand about ModelMapper.
ModelMapper is used to convert DTO to Entity and Entity to DTO
-
40Implement business logic to insert user data.Video lesson
In this lecture you can implement business logic to insert the data
-
41Insert user details in databaseVideo lesson
In this lecture, you can insert user details in database by using registration web page.
-
42Display user registration successful message in login page.Video lesson
In this lecture, you can learn how to display user registration successful message in login page
-
43Duplicate email id server side validationVideo lesson
In this lecture you can lean server side validation for duplicate email id.
-
44Download JQuery library and include it in user registration web pageVideo lesson
In this lecture you can learn how to download jquery library and add this library in user registration web page.
-
45Implement Ajax call to validate email idVideo lesson
In this lecture you can learn how to make an ajax call in jquery
-
46Create findByEmail rest APIVideo lesson
In this lecture, you can implement rest API to validate email address exists or not
-
47Test JQuery Ajax call to validate email id present in database or notVideo lesson
-
50Create and display forgot password web pageVideo lesson
In this lecture, you can create forgot password web page
-
51Create email sender service classVideo lesson
In this lecture, you can create Email sender service class to send an email to end user.
-
52Configure SMTP properties in application.propertiesVideo lesson
In this lecture, you can configure smtp properties
-
53Add reset password token and token created date columns in user tableVideo lesson
In this lecture, two new column are added in user table for password reset functionality
-
54Create send email methodVideo lesson
In this lecture, you can create a method to send an email to end user
-
55Generate Rest Password token and Reset Password linkVideo lesson
In this lecture, will generate reset password token and reset password link.
-
56Update reset password token in user tableVideo lesson
In this lecture, we will insert reset password token in user table.
-
57Construct email content to send an email to end userVideo lesson
In this lecture, you can construct an email content to send an email to end user.
-
58Send an email to end user with reset password linkVideo lesson
In this lecture, you can test forgot password functionality.
-
59Create reset password web controller.Video lesson
In this lecture, you can create reset password web page
-
60Validate reset password token.Video lesson
-
61Validate reset password link expiry time.Video lesson
In this lecture, you can write logic to validate reset password link expiry time.
-
62Create change password web page and message web page.Video lesson
-
63Validate password and confirm password matchVideo lesson
In this lecture, you can learn how to validate password and confirm password by using javascript.
-
64What happens if I modify reset password link token in browser?Video lesson
In this lecture , you can learn how to handle negative scenario like what happens if I modify reset password link
-
65Create web controller method to update change password in databaseVideo lesson
In this lecture, write controller method to update change password in database
-
66Implement logic to update change password in databaseVideo lesson
In this lecture, you can implement logic to update the change password in database.
External Links May Contain Affiliate Links read more