Beyond Basics: User Authentication with MongoDB in Spring Security 6

preview_player
Показать описание
🌐 Welcome to AnbuZ HobbieZ! In this advanced Spring Security 6 tutorial, we're taking user authentication to the next level by integrating Spring Security with a MongoDB database. Join me, Anbumani, as we explore the powerful combination of Spring Security 6 and MongoDB for secure and scalable user authentication."

🚀 Key Highlights:

Integrating Spring Security with a MongoDB database.
Leveraging Spring Data MongoDB for seamless user details management.
Advancing our authentication system beyond in-memory setups.
💡 Why MongoDB for Authentication?
MongoDB, with its flexible schema and scalability, offers an excellent solution for managing user authentication data. Learn how to harness its power for your Spring Security applications.

🛠️ Code Along:
Follow along as we dive into the code, configure Spring Security with MongoDB, and implement user authentication using Spring Data MongoDB.

👩‍💻 Prerequisites:
Basic understanding of Spring Security and MongoDB concepts will be beneficial for this tutorial.

Рекомендации по теме
Комментарии
Автор

It’s funny I used chat gpt and it gave me your security config code I’m having trouble though, some new version came out and now the code is similar to yours but it’s deprecated

GhOsT-stch
Автор

Would like to see spring MongoDB and react as a login form 😊

GhOsT-stch
Автор

Hi Anbuz, I followed this tutorial, I am not sure why I get bad credential when I put my registered user, do you have any idea?

cheribgh
Автор

Thank you ! I was really looking for an up-to-date explanation of how to do this.

And if I want to have my own login screen?

I changed in SecurityFilterChain:
.formLogin(form -> form
.loginPage("/login")
.permitAll());

And I added the file:


But it doesn't work that way, I'd appreciate it if someone knows how to do it

limodemh
Автор

Hello Anbuz, can I send you an email I have a request for you ?

oxoss