Тёмный

Adding Spring Security to new Spring Boot project - Java Brains Brain Bytes 

Java Brains
Подписаться 663 тыс.
Просмотров 334 тыс.
50% 1

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

Опубликовано:

 

25 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 137   
@lunamore4077
@lunamore4077 7 месяцев назад
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...
@joanofarcshubhajoanofarcsh1010
@joanofarcshubhajoanofarcsh1010 4 года назад
A good teacher can teach difficult things in simple manner. That's koushik ji. Technologies and logics simplified.
@elenazaytseva9196
@elenazaytseva9196 4 года назад
I can't agree more! You are the best teacher I have ever come across!
@ambarishkapil8004
@ambarishkapil8004 9 месяцев назад
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.
@jeetusahu3489
@jeetusahu3489 3 года назад
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!
@utsavanand5558
@utsavanand5558 4 года назад
Blessed to have tutor like you. The simplicity of explaining concepts is class apart.
@krige
@krige 3 года назад
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.
@wilsonbarbosa8210
@wilsonbarbosa8210 Месяц назад
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
@muditbajpai1218
@muditbajpai1218 4 года назад
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.
@genprimabiocakti6159
@genprimabiocakti6159 3 года назад
here i'm to see the clearest about the CONCEPT, best teacher, lucky i found this
@shantipriya4724
@shantipriya4724 4 года назад
You are a great teacher. Explain difficult things so easily.
@commentsonly4341
@commentsonly4341 4 года назад
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 😊
@siddharthbhardwaj8563
@siddharthbhardwaj8563 4 года назад
Trust me this trainer has done a brilliant explanation on this concept Spring Security...I have subscribed this channel after watching this video.
@jnfrle
@jnfrle 4 года назад
Thanks so much for making this available!
@whatnot798
@whatnot798 4 года назад
Your channel is pure gold.
@108vicky
@108vicky 4 года назад
This is the best example so far.. thanks so much for this.
@oni-chan2065
@oni-chan2065 2 года назад
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!!
@SushilKumarBhaskar
@SushilKumarBhaskar 4 года назад
Excellent Explained EE+, a Long awaited on spring boot security Tuto, JWT along with Spring Security Please?
@SurajMahli
@SurajMahli 3 года назад
What a teacher.. You are changing my coding life
@raghavanaliassaravananm1546
@raghavanaliassaravananm1546 2 года назад
The precise and perfect tutorial Kaushik, certifying your legendary expertise! :)
@balanepalaiyathane9714
@balanepalaiyathane9714 4 года назад
God Bless You Kaushik you are helping many people to better their career. You are covering concepts to the best level
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 3 месяца назад
Fantastic tutorial! Thank you so much! 💛
@karkiashwin1174
@karkiashwin1174 4 года назад
It was the best part of your series. thnks for the tutorial
@deveshmishra6611
@deveshmishra6611 4 года назад
Thanks for this series
@adityan422
@adityan422 4 года назад
You are an amazing techie... Salute for your contribution
@falgunrajput8490
@falgunrajput8490 4 года назад
Hi sir Your all videos are great ! Till now i didn't find any person who is teaching like you Thanks for videos :)
@Imthatguyx10
@Imthatguyx10 3 года назад
Absolute excellence! Thank you for making this!!! Definitely a big like AND subscribe for you my dude!
@ShameeraAnuranga
@ShameeraAnuranga 4 года назад
Explained All the things very nicely
@go_better
@go_better Год назад
Thanks! It's so interesting, clear and...not scary at all!
@mohammedouladram1077
@mohammedouladram1077 4 года назад
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.
@lindijin8103
@lindijin8103 2 года назад
Thank youu. So simple and useful
@CHANDRU419
@CHANDRU419 4 года назад
Sir. Please! I'm badly looking for your security series. Please enable us spring secured! You are great
@AbhishekChanda
@AbhishekChanda 4 года назад
Do you have a Pateron account? You deserve to be paid.
@samalprasant123
@samalprasant123 4 года назад
Agree.
@omkarkulkarni9202
@omkarkulkarni9202 4 года назад
just subscribe as a paid, here.
@relievestress557
@relievestress557 2 года назад
Agreed
@dineshshekhawat2021
@dineshshekhawat2021 4 года назад
Brilliant! Just brilliant!
@ronaksayta8191
@ronaksayta8191 2 года назад
I wanted to clear my concepts your video helped me thanks
@KP-hz5wm
@KP-hz5wm 3 года назад
You are amazing Kaushik.. You deserve an award :)
@SuperWhatusername
@SuperWhatusername Год назад
Thank you for the tutorial
@aihsdiaushfiuhidnva
@aihsdiaushfiuhidnva Год назад
this is such a good tutorial, you are a cut above other youtubers.
@chandniyadav1697
@chandniyadav1697 2 года назад
Amazing explanation!
@LalitKumar-cw9rf
@LalitKumar-cw9rf Год назад
Very good tutorials , easy to understand
@beinglogicalyadav9750
@beinglogicalyadav9750 4 года назад
Fabulous as always......
@francogb
@francogb 4 года назад
Amazing job! Can you explain about JWT in Spring Security? Thanks!
@Comyupower
@Comyupower 4 года назад
Can you maybe do a tutorial where you have angular use jwt, but login forms are also possible?
@dexdinh1007
@dexdinh1007 4 года назад
I need JWT too, most of video and other tuts do not explain clearly :(
@ibtissamboutahi3078
@ibtissamboutahi3078 4 года назад
*********** what a great videos **********************
@wafaeletje
@wafaeletje Год назад
a really good explanation!! thank you, i have subscribed
@bhargavartworks
@bhargavartworks 3 года назад
Very helpful , thanks
@josephkingstonleomariamich7220
@josephkingstonleomariamich7220 4 года назад
One of the best persons thanks
@prabhatyadav3373
@prabhatyadav3373 4 года назад
Awesome 👍
@katiesun1533
@katiesun1533 4 года назад
Great! 👍
@maheshshete7000
@maheshshete7000 2 года назад
Very nice explanation sweet and short
@southindianadventure4791
@southindianadventure4791 4 года назад
good explanation sir
@liubomyr-oleksandrdebryniu8044
@liubomyr-oleksandrdebryniu8044 4 года назад
thanks a lot very useful
@shaswatdasgupta3776
@shaswatdasgupta3776 4 года назад
Thanks Kaushik!
@dipeshsinghjr.4000
@dipeshsinghjr.4000 Год назад
Bro how you just make these topics so easy to understand...? Anyway thanks your channel is great relief for me.
@yash.brahmb
@yash.brahmb 4 года назад
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?
@anurag9110
@anurag9110 4 года назад
Great video
@kaleemullahnizamani7436
@kaleemullahnizamani7436 4 года назад
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.
@nithinvarghese7765
@nithinvarghese7765 4 года назад
Thank you
@sanyammadaan2396
@sanyammadaan2396 3 года назад
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.
@venkat81100
@venkat81100 4 года назад
Tq Koushik👍
@tohidurislammondal2897
@tohidurislammondal2897 Год назад
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.
@ImperialSolo
@ImperialSolo 5 месяцев назад
Thx Man!
@vamshireddy6722
@vamshireddy6722 4 года назад
I got a full-time job at American Express. Thank you #javabrains#koushikji
@amruthakm1042
@amruthakm1042 4 года назад
Hi Kaushik Sir, This tutorial is wonderful asusual. Please plz add tutorials for Junit and Mockito.
@shankarchandramouleeswaran3864
@shankarchandramouleeswaran3864 4 года назад
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?
@gowrisankar3905
@gowrisankar3905 4 года назад
This is what iam waiting for
@mostinho7
@mostinho7 4 года назад
Done thanks
@TheStrategist314
@TheStrategist314 4 года назад
Nice.
@pratyush__agarwal
@pratyush__agarwal 3 года назад
God bless you 💓
@mritunjayyadav3788
@mritunjayyadav3788 4 года назад
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 ?
@MrEvmk
@MrEvmk 3 года назад
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
@Rav_ind_er
@Rav_ind_er 3 года назад
very handy!! thank you
@devrajatverma
@devrajatverma 4 года назад
Really liked the "Spoiler alert" 😜
@subramanianchenniappan4059
@subramanianchenniappan4059 3 года назад
great bro
@menabebawy390
@menabebawy390 Год назад
great man
@melsaied101
@melsaied101 4 года назад
That's nice
@nagendrapp2213
@nagendrapp2213 4 года назад
could u plz upload a series on design patterns
@anshgyl
@anshgyl 4 года назад
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?
@niyioke8755
@niyioke8755 4 года назад
Ya just the best
@sud19891
@sud19891 Год назад
Thanks
@Java.Brains
@Java.Brains Год назад
Thanks so much Appreciate the contribution
@FranklinXPe
@FranklinXPe 4 года назад
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?
@priyakdey7891
@priyakdey7891 4 года назад
project class path - springboot classpath
@Nikhil-mu9ol
@Nikhil-mu9ol 4 года назад
Hi kaushik sir, please make one video on spring boot and hikari
@kumargaurav4362
@kumargaurav4362 4 года назад
When can we see Spring Session in Java brains Playlist ?
@keyurnayee6746
@keyurnayee6746 3 года назад
this is really good content. but you should make videos in white theme in any IDE when you are teaching
@d2k2
@d2k2 9 месяцев назад
what is the name of the used intellij theme? thanks :)
@Joe-qv2jo
@Joe-qv2jo Год назад
Never expected a login screen out of the box lol
@romantum
@romantum 4 года назад
this guy sounds like Dinesh from Silicon Valley :) I love watching it just for that
@pablohernandez4305
@pablohernandez4305 2 года назад
i don't know how configurate spring security default username and password, thanks for this video
@shashankcool
@shashankcool 2 года назад
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.
@dhanya4741
@dhanya4741 2 года назад
Anyone watching this masterpiece in 2022?
@PrashanthSam..
@PrashanthSam.. 2 года назад
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
@prof958
@prof958 3 года назад
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 ?
@dionthomas7077
@dionthomas7077 Год назад
Should there be an empty application.properties file on git?
@Standupibrahimbackup
@Standupibrahimbackup 4 года назад
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
@alexandrustan8143
@alexandrustan8143 Год назад
What dependencies you used to create the project?
@sahinsarkar7293
@sahinsarkar7293 4 года назад
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?
@ItsDanielShay
@ItsDanielShay Год назад
did you found the solution?🥲
@sajeevvasudevan6301
@sajeevvasudevan6301 4 года назад
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
@HanilKathuria
@HanilKathuria 4 года назад
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.
@USONOFAV
@USONOFAV 4 года назад
can I use cipher{...} on the password if the my spring boot app uses spring cloud config?
@archanamundaye8391
@archanamundaye8391 4 года назад
There's bug in spring security. I created project and logged in once using password created by app then restarted server so it created different password this time. I compared later with older one manually. Still it logged me in without asking for password. When I cleared cookies then it asked me for my password again. It's wrong isn't it?
@spnarayanrao
@spnarayanrao 3 года назад
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
@lequocthinh8992
@lequocthinh8992 2 года назад
Can anyone tell me which theme in Intelij that he is using? thx
@cyborgplay
@cyborgplay 4 года назад
The dependecy code: org.springframework.boot spring-boot-starter-security
@ifeanyichukwuotiwa9510
@ifeanyichukwuotiwa9510 2 года назад
mandatory authentications for all URLs still includes the /error page