Custom login page with spring security

preview_player
Показать описание
how to use the custom login page with spring security? How to handle and provide a custom login page with #springsecurity using #springmvc and #springboot.

Spring security provide a default login page in case no custom login page is configured with security. In this video, we will look in to each and every step to customize the login process and use a custom login page. We will cover the following information in this #springsecuritytutorial.

1. Create custom login page in spring security.
2. Define a custom login controller.
3. Create a custom user detail service to get customer information and pass it to Spring security.
4. How to configure DAOAuthenticationProvider and pass our user detail service.

#springsecurity #springsecuritycourse #springsecuritytutorial #springsecuritylogin #springboot #springmvc #springbootcourse #springsecuritycustomloginpage
Рекомендации по теме
Комментарии
Автор

Hello
just wondering on which class we are generating cookie, I know how we can change cookie name and other configs but can you point me where exactly we are creating cookie and setting it to response.

Also does this cookie creation logic remains same on oauth2 flow as well.
thanks in advance.

ravindrabhatt
Автор

I have a problem, does anyone know how I can free up the static resources of the login page? I already released the configure method (WebSecurity web) and added ("/ resources / **", "/ static / **") but it still didn't work, I read it in the documentation and says to do the same, but I don't know why that is not working.

Lukas-dwjm
Автор

Hi bro I want to pass Username, Password and one selectoption value How can i get the value inside loadUserByUsername method. PLease reply me bro

sarvavideovice
Автор

One doubt. in CustomUserDetailService.java you are calling User.withUsername(...
What is the User class, I could not see it in the tutorial

yaserrasheed