Adding Spring Security to new Spring Boot project - Java Brains Brain Bytes
Vložit
- čas přidán 19. 05. 2024
- In this video, you’ll learn how to add Spring Security to a fresh Spring Boot application step-by-step. Adding Spring Security to Spring Boot has a surprising and interesting effect. You’ll see what this effect is, and also understand why that’s happening.
Java Brains website: javabrains.io
#JavaBrains #BrainBytes #WhatIs #SpringSecurity #Spring #SpringBoot #Java #Tutorial
Sincerely Thank You, Sir! I used to feel dumb because I couldn't get the idea of spring security from my professor's lecture. Now I realize that there are no bad students but bad teachers who make their students feel dumb...
Thank you for making this tutorial. I have seen paid courses that just basically state the concepts or use a power point slide. But you taking the effort to draw and animate this tutorial makes all the difference. Really appreciate you doing this Kaushik. Keep up the good work.
A good teacher can teach difficult things in simple manner. That's koushik ji. Technologies and logics simplified.
I can't agree more! You are the best teacher I have ever come across!
My career path got changed from QA tester to Java Developer with the help of this wonderful channel. I will remain grateful to Kaushik for making such a wonderful, easy to understand videos. Thank you for your effort!
Blessed to have tutor like you. The simplicity of explaining concepts is class apart.
Dude, I'm learning angular with spring and I've just added spring security to my dependencies and I was shocked this default authentication was a thing. I was so confused and this playlist of yours is helping me SOOOOOOOO MUCH! Like, seriously, you are one of the best teachers on youtube. You have such a concise and direct way of presenting these concepts! And you comparisons and metaphors are excellent, the visuals are very helpful as well. One of the best content I saw in my entire life! Thank you thank you
Spring Security makes much more sense now, thanks. I discovered your channel through this video and I plan to watch all your other videos. You have outstanding teaching skills! If you are taking requests, I would love to see a video which explains how to write tests for own request handling methods (with MockMvc) and for methods which call external party endpoints (with WireMock) in an application configured with Spring Security.
Like I mentioned earlier, it feels really nice to be following the things posted by you on timely basis. And I am eagerly waiting for the next in series.
These teasers r so tempting ... can’t wait for full video series on security ... please publish oauth2 , ssl handling in spring boot soon , I m so habituated to learn from ur videos that I don’t find other tutorials bad 😊
here i'm to see the clearest about the CONCEPT, best teacher, lucky i found this
Trust me this trainer has done a brilliant explanation on this concept Spring Security...I have subscribed this channel after watching this video.
You are a great teacher. Explain difficult things so easily.
Thanks so much for making this available!
Your channel is pure gold.
The precise and perfect tutorial Kaushik, certifying your legendary expertise! :)
Fantastic tutorial! Thank you so much! 💛
This is the best example so far.. thanks so much for this.
After visiting 100s of websites and still not able to understand properly, Here just in single video am able to understand properly.
Hats off to the to you Man!!
God Bless You Kaushik you are helping many people to better their career. You are covering concepts to the best level
Absolute excellence! Thank you for making this!!! Definitely a big like AND subscribe for you my dude!
Excellent Explained EE+, a Long awaited on spring boot security Tuto, JWT along with Spring Security Please?
What a teacher.. You are changing my coding life
Hi sir
Your all videos are great !
Till now i didn't find any person who is teaching like you
Thanks for videos :)
You are an amazing techie... Salute for your contribution
It was the best part of your series. thnks for the tutorial
Thanks! It's so interesting, clear and...not scary at all!
Explained All the things very nicely
Thanks for this series
this is such a good tutorial, you are a cut above other youtubers.
Sir. Please! I'm badly looking for your security series. Please enable us spring secured! You are great
Thank you for the tutorial
a really good explanation!! thank you, i have subscribed
Thanks for this video.another Spring security default behaviour is that adds a csrf controle, the request is handling a synchronized token hidden in the authentication page.
Brilliant! Just brilliant!
Amazing job!
Can you explain about JWT in Spring Security?
Thanks!
Can you maybe do a tutorial where you have angular use jwt, but login forms are also possible?
I need JWT too, most of video and other tuts do not explain clearly :(
Thank youu. So simple and useful
I wanted to clear my concepts your video helped me thanks
*********** what a great videos **********************
Amazing explanation!
Hi Kaushik, You're a gem. A wonderful teacher. With every video, we receive knowledge from badic to advanced. Thank you for uploading so many wonderful videos.
If possible, do you have any plan to have a workshop on spring security with regards to Microservices workshops that you have currently?
Very nice explanation sweet and short
You are amazing Kaushik.. You deserve an award :)
Very good tutorials , easy to understand
Fabulous as always......
Bro how you just make these topics so easy to understand...? Anyway thanks your channel is great relief for me.
Awesome 👍
I got a full-time job at American Express. Thank you #javabrains#koushikji
Hi Kaushik Sir,
This tutorial is wonderful asusual.
Please plz add tutorials for Junit and Mockito.
One of the best persons thanks
Hello Koushik sir, I have been watching your contents from last year. Each playlist is a masterpiece. The music at the end of the video. did you compose it? its nice.
Thanks Kaushik!
Very helpful , thanks
good explanation sir
Wow! Great!
When user sets the password in application.properties, then does this password securely travels from client side to server side.
Or we have to add that encryption.
Great! 👍
I Java brain,
I have been following your series. It is must to appreciate the way the concept is explained. Good series.
I have a query in spring boot security.
Consider for a spring boot application, we have implemented spring boot security. Following to this, we have configured the username, password and uri to be protected based on the roles. Now, on running the code, the app should work fine if we access the uri. But, if we access the html page straight away, with out any authentication, the html page is getting loaded. I am not sure whether it is a bug or something. Could you please help here on how to protect the html pages also?
Thx Man!
Great video
God bless you 💓
Make this play list comprehensive and cover all security concepts every spring boot app need security and unfortunately there are not good resources available to learn spring boot security.
what is the name of the used intellij theme? thanks :)
thanks a lot very useful
Thank you
First of all you are the greatest of all time . I have one little question can anyone tell me how spring security uses Principal object because one spring boot instance can serve multiple logged in users so how it stores all Principal details of all users ?
Tq Koushik👍
Really liked the "Spoiler alert" 😜
Done thanks
great bro
This is what iam waiting for
Do you have a Pateron account? You deserve to be paid.
Agree.
just subscribe as a paid, here.
Agreed
great man
Nice.
could u plz upload a series on design patterns
Notes for my ref:
By adding spring-security-starter project to the classpath , it will automatically configure it
Filter is a like a servlet scans all the URLs and provide default implementation.
Spring security default behaviour :
1.provides login form
2.login Error handling
3.Added mandatory login for all the API
4.creates default user and password
Spring.security.user.name=foo
Spring.security.user.password=foo
very handy!! thank you
Can you please add a video in which we can use a custom login page, instead of a default one, how do we call the login API from our own form?
I love you more than my mother loves me. Thank you so much for these tutorials. Ok not as much as my mother but definitely more than my girlfriend
Hi kaushik sir, please make one video on spring boot and hikari
That's nice
this is really good content. but you should make videos in white theme in any IDE when you are teaching
What did you mean when said: ClassPath? The operating system's Classpath when we set en enviroment variables. Or The "src/java/main" path in the project?
project class path - springboot classpath
i don't know how configurate spring security default username and password, thanks for this video
When can we see Spring Session in Java brains Playlist ?
Ya just the best
Never expected a login screen out of the box lol
this guy sounds like Dinesh from Silicon Valley :) I love watching it just for that
Thanks
Thanks so much Appreciate the contribution
Should there be an empty application.properties file on git?
But we have a major issue here how the welcome page opened in the site did you add any properties in applicaton.properties?
please respond
What dependencies you used to create the project?
The dependecy code:
org.springframework.boot
spring-boot-starter-security
Anyone watching this masterpiece in 2022?
Hi , Even after adding maven dependency spring-boot-starter-security in pom.xml file after starting the app login form is not getting displayed. Please guide me since I'm new to spring boot.
Can anyone tell me which theme in Intelij that he is using? thx
Hi people,
I am following this tutorial but the thing is i alway get a AlertBox that you can fill creditientals. Not a page just a little alertbox. Any idea why i have this ?
but sir for this sample code in ur controller your added @ResponseBody annotation then how u getting this out put in web page properly,m did u add some web page in resource
Rest controller is basically controller + response body. So if you return a string from your rest controller, then it will be shown directly on the web page.
can I use cipher{...} on the password if the my spring boot app uses spring cloud config?
Hi Koushik, I am trying to call a post API from postman after enabling spring security for my app. Now, I can't call the API after adding the username and password as a basic auth in postman ( this gives 401 error ), but when I enter the same credentials in chrome, the security part works. What should I do to send credentials properly for post request from postman?
did you found the solution?🥲
mandatory authentications for all URLs still includes the /error page
how to upgrade from Struts security to Spring Security, in Struts project using Security with Struts Security tag lib now how to upgrade to Spring Security. Can you please give some info or create a video on that
Anyone knows the name of the theme he is using?