Spring Security in Spring boot Interview Questions and Answers | Part -1 | Code Decode

  Рет қаралды 141,373

Code Decode

Code Decode

3 жыл бұрын

In this video of code decode we have covered Spring security Interview questions and answers for experienced and freshers in Spring boot
Spring Security Interview Questions part 2
• Spring security in Spr...
We have covered :
Why Spring Security is needed at first place?
We have seen how to answer this question through an analogy of layers of server. We can answer this in Spring Security Interview Questions.
How Spring Security is used to secure your application at a high level?
To answer this too, we have used an analogy of resort and receptionist which helped us understand how spring security in spring boot works and why.
We also have seen Types of Authentication
Knowledge Based Authentication
Possession Based Authentication
Multifactor Authentication
We have seen What are core key concepts of Spring security Interview Questions.
Authentication
Authentication
Principal
Granted Authority
Roles
If given a CRUD or simple spring boot app , How will you implement the Spring security ?
The First and only step to implement Spring security in any spring boot Application is by adding following starter dependency in Pom. Xml
And that’s all.
You have created a reception(filter) in front of your hotel (application). Who will do authentication n authorization for you.
It will also do validations for you bcz now u have ur receptionist in place to ask for your authentication.
Code Decode Playlists
Most Asked Core Java Interview Questions and Answers : • Core Java frequently a...
Advance Java Interview Questions and Answers : • Advance Java Interview...
Java 8 Interview Questions and Answers : • Java 8 Interview Quest...
Hibernate Interview Questions and Answers : • Hibernate Interview Qu...
Spring Boot Interview Questions and Answers : • Advance Java Interview...
Angular Playlist : • Angular Course Introdu...
GIT : • GIT
-------------------------------------------------------------------------------------------------------------------------------------
Subscriber and Follow Code Decode
Subscriber Code Decode : kzfaq.info?...
Linkedin : / codedecodeyoutube
Instagram : / codedecode25
--------------------------------------------------------------------------------------------------------------------------------------------------
#codedecode #springbootinterviewquestionsandanswers #springsecurity

Пікірлер: 164
@shyamkumard2146
@shyamkumard2146 2 жыл бұрын
You’re teaching with your heart.. God Bless you
@CodeDecode
@CodeDecode 2 жыл бұрын
This means a lot to us Shyam 🙂👍We are just following our passion apart from regular 9 to 5, (which truely never is limited to 9 - 5 though 🤣)
@deepakss894
@deepakss894 Жыл бұрын
Thank you for all your effort. Because of this videos I was able to crake the interview in multiple companies. Now I have switched my job with 100% hike in product based company . Thanks a lot :), still I continue watching and waiting for new videos.
@CodeDecode
@CodeDecode Жыл бұрын
Many congratulations Deepak🎊🎊🎊🎊🎊. Well deserved 👍👍. Keep learning keep shining Man🙂👍
@MukeshBhoge
@MukeshBhoge 2 жыл бұрын
Great work. Your explanation skills and in depth knowledge of each topic are second to none. Thank you for all your hard-work and waiting for more videos on Oauth2 and JWT.
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks alot Mukesh. Sure we will upload it soon 🙂👍
@learncodingideaswithme
@learncodingideaswithme Жыл бұрын
Thank you for the very nice explanation along with the demo. It really helped a lot to understand easily. Please do the continuation series of spring security based on passwordEncoder, bcrypt, oauth and token related concepts which are very much important. Thanks in advance
@gsaravanan41
@gsaravanan41 2 жыл бұрын
00:29 Why Spring Security is needed at first place? 01:54 How Spring Security is used to secure your application at a high level 03:59 Types of Authentication 08:09 What are the core concepts of Spring Security? 10:49 17:53 If given a CRUD or simple spring boot app How will you implement the Spring security 18:23 How is Spring security intercepting your requests?
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Saravanan
@samsonrj5628
@samsonrj5628 Жыл бұрын
Thanks for the detailed explanation of security core concepts and spring security. Very well explained in easy to understand way for both freshers and experienced developers.
@CodeDecode
@CodeDecode Жыл бұрын
Thanks Samson🙂🙂
@aasthasharma8593
@aasthasharma8593 3 жыл бұрын
Thank you so much for making this series.
@CodeDecode
@CodeDecode 3 жыл бұрын
You're welcome Aastha....
@dipaliyadav-koli1060
@dipaliyadav-koli1060 3 жыл бұрын
Great explanation. Thank you so much.
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍🙂🙂
@vntgerald1743
@vntgerald1743 3 ай бұрын
I just brush my skill. It is very useful
@amitajadhav9200
@amitajadhav9200 3 жыл бұрын
Thank you for this video.. Principal = Authenticated User very simply explained
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Amita 🙃👍
@BANDARIMAHESH-c5z
@BANDARIMAHESH-c5z Ай бұрын
A good concept well explained by you.
@solankijigar11
@solankijigar11 3 жыл бұрын
Awesome explaination. thanks!!!!!
@CodeDecode
@CodeDecode 3 жыл бұрын
You're welcome!
@Athira_Surendran
@Athira_Surendran 3 жыл бұрын
Thanks for uploading this video and its very useful. The way you presenting each topics are just awesome. Waiting for your upcoming videos.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Athira 🙂🙂👍👍
@devpradeep1931
@devpradeep1931 2 жыл бұрын
Mam thankyou so much all the content you are providing . So gratefull to you,hope you continue to do the magic which you are doing now.
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Dev🙂👍
@rakeshkachhadiya
@rakeshkachhadiya Жыл бұрын
Really Awesome. I have many many years of experience in Software Industry but your video gives still lots of information. Really appreciate your work. Keep it up.
@CodeDecode
@CodeDecode Жыл бұрын
Thanks a lot Raakesh. Even after having so many years of exp, you still have zest to learn is really inspiring 🙂👍👍
@priyankau1982
@priyankau1982 2 жыл бұрын
I wish I can able to explain like you ....wow what a clarity in topic and communication. Expecting more and more videos from you mam.
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Priyanka. 🙂🙂
@hridikasaha9519
@hridikasaha9519 8 ай бұрын
Great explanation , waiting for more such videos.
@CodeDecode
@CodeDecode 8 ай бұрын
Sure 😊
@priyankachougule4334
@priyankachougule4334 3 жыл бұрын
Thank you for hard work & taking so much efforts to drill down all the topics & coming with expected questions & explanation. All efforts are appreciable. Could you please make a video on OKTA & React also.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Priyanka. We were about to think in okta spring boot oauth2 project and u gave a green flag.
@indrajeetkadam3472
@indrajeetkadam3472 Жыл бұрын
@@CodeDecode I am also waiting for the okta spring boot oauth2 project.
@kundanprasad1303
@kundanprasad1303 3 жыл бұрын
Mam, you are doing wonderful job, Thank you for your effort
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Kundan 👍👍
@saipriya837
@saipriya837 6 ай бұрын
Thank you so much for creating this video ❤
@CodeDecode
@CodeDecode 6 ай бұрын
you're welcome
@surbhigupta6471
@surbhigupta6471 3 жыл бұрын
Thanks for the grt video . really appreciate and u guys are really helping us.👍🏻
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for writing back to us Surbhi 👍👍. Much appreciated🙏
@paswini244
@paswini244 3 жыл бұрын
Thank you for uploading vedio on spring security...I will watch soon👍😊
@CodeDecode
@CodeDecode 3 жыл бұрын
We hope it fulfills your basic spring security questions expectations🙏
@sahilbhavsar8194
@sahilbhavsar8194 3 жыл бұрын
Great explanation. Waiting for second video on this
@CodeDecode
@CodeDecode 3 жыл бұрын
Very soon we will upload this 👍
@rajatmahajan5112
@rajatmahajan5112 3 жыл бұрын
Thanks alot for uploading videos on Spring Security. Please upload interview que & ans on java concurrency, executer framework & apache kafka.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Rajat👍👌
@rajatmahajan5112
@rajatmahajan5112 3 жыл бұрын
Thank you very much. Please make 2nd part of spring security. Also please elaborate on filters also.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure. Thanks for helping us in deciding the priorities 👍👍
@TheEntium
@TheEntium 3 жыл бұрын
Firstly thanks for your hardwork i really appreciate.. your spring boot videos are really helpful .. especially expections .. please cover loggers too..also can you please make all type of spring security video like with MySQL, Jwt, oauth2 ... and also please make video on angular 2+ too because your explanation is really amazing and impressive .. and you can also do live Q/A sessions by the way you got my instant sub! Once again thanks..🔥🔥
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for the nice suggestion Entium. 🙃
@CodeDecode
@CodeDecode 3 жыл бұрын
We will cover all the spring security topic using jwt, o auth every thing in up coming videos 👍👍
@TheEntium
@TheEntium 3 жыл бұрын
@@CodeDecode thanks in advance 😀
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍
@tharunreddy170
@tharunreddy170 3 жыл бұрын
Thanks for uploading video. It would be great if you bab cover more questions.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍 will cover them in next video 👍👍
@vamsirajuvamsiraju420
@vamsirajuvamsiraju420 3 жыл бұрын
Your Way of explantion on each topic is spoon feeding to every programmer kid 👏👏👏👏
@CodeDecode
@CodeDecode 3 жыл бұрын
😂😂. Is it? We never realised that. Thanks for observing Vamsi. Is it good or bad 🙂
@vamsirajuvamsiraju420
@vamsirajuvamsiraju420 3 жыл бұрын
@@CodeDecode you have done very good job madam... Keep it up
@kathurisaikumar4011
@kathurisaikumar4011 3 жыл бұрын
Thanks for uploading, it was nicely explained , could you make another video explaining how the users get created and how the roles are assigned to each users that would be more helpful
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure👍. We will cover that in next video
@yogitamittal6967
@yogitamittal6967 2 жыл бұрын
Hi , love your videos. They are precise and good for interview purpose. Can you please include concept of filters for servlet too.
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Yogita🙂👍
@GaneshKumar-pf7jc
@GaneshKumar-pf7jc Жыл бұрын
very good explanation. Thanks for sharing
@CodeDecode
@CodeDecode Жыл бұрын
you're welcome ganesh
@niteeshchandanshire4381
@niteeshchandanshire4381 8 ай бұрын
Thank you mam for the explanation
@CodeDecode
@CodeDecode 8 ай бұрын
You're welcome
@mazeedmahammad9508
@mazeedmahammad9508 2 жыл бұрын
Your way of explanation is excellent...
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks
@technicalfarmer4462
@technicalfarmer4462 Ай бұрын
Very nice 😊
@CodeDecode
@CodeDecode Ай бұрын
Thanks 👍
@piyushrayrikar
@piyushrayrikar 3 жыл бұрын
Great explanation.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Piyush
@kossivisenyohemazoh1921
@kossivisenyohemazoh1921 3 жыл бұрын
Thanks for upload this video. It was very usefull. I'm looking also a video implement use of spring boot security with oauth2 in merging with angular 11 project. Once again thanks !
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure. You will be able to find that in upcoming videos 👍👍👍👍
@Abdullah-rv1pk
@Abdullah-rv1pk 2 жыл бұрын
Thank you!
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Abdullah 🙂👍
@javatest8107
@javatest8107 7 ай бұрын
Your Explanation and way of teaching is effective. and that is very helpful to understand the any of the specific topic. I am big fan of your teaching style....🙂
@CodeDecode
@CodeDecode 7 ай бұрын
Thanks 😊👍
@PraveenKumar-uj2ih
@PraveenKumar-uj2ih 2 жыл бұрын
Mam Really Thanks A Lot For Ur Efforts ❤ #CodeDecode😍
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks a ton Praveen 🙂👍
@rishabhthakur7245
@rishabhthakur7245 2 жыл бұрын
It really is a greate session .
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Rishabh
@sudhakarmallampati2800
@sudhakarmallampati2800 3 жыл бұрын
Nice explanation with good anology
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Tharun 👍👍
@abiultimate
@abiultimate 2 жыл бұрын
Thank you... good.
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Abirami🙂👍
@sagarikadevnath2716
@sagarikadevnath2716 Жыл бұрын
Ma'am...please make a video on JWT as there is no comprehensive video available in this topic in the entire you tube
@suvambiswas2205
@suvambiswas2205 Жыл бұрын
great
@CodeDecode
@CodeDecode Жыл бұрын
Thanks
@Ram-xx4bi
@Ram-xx4bi 2 жыл бұрын
Thank you so much mam I have inter view but I don't know spring security now am preparing this one
@CodeDecode
@CodeDecode 2 жыл бұрын
All the bes Ram you'll surely crack it.....
@Ram-xx4bi
@Ram-xx4bi 2 жыл бұрын
@@CodeDecode mam any swagger and OAuth videos there ?
@gauravjaiswal7923
@gauravjaiswal7923 2 жыл бұрын
Great explanation, Thanks for the hardwork and uploading. Can you pls upload video on filters.
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Gaurav. We wi do that soon 👍🙂
@pramodkumar-fo5sy
@pramodkumar-fo5sy 2 жыл бұрын
Gr8 video
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Pramod....
@subashtalla04
@subashtalla04 Жыл бұрын
Great presentation, can you please share the ppt to refer
@jayashreeramesh9412
@jayashreeramesh9412 3 жыл бұрын
HI MAM. Thanks for ur video . your videos and explanations are damn good. can you please make video on Microservices interview question.?
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure jayashree, we will surely plan to create a video on this 👍👍
@croydon21H
@croydon21H 4 ай бұрын
@8:58 I think we need to use spring documentation as a standard or atleast comparable
@Tidda420
@Tidda420 3 жыл бұрын
Great !! How much experience do you have in Java?
@varaprasad7893
@varaprasad7893 2 жыл бұрын
Thank You for hardwork and nice explanation...can you please do more oauth2 and alll.
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Vara we will do that 🙂👍
@amitbhattacharya356
@amitbhattacharya356 Ай бұрын
Want to know about filter and SSO please.
@pratikburnwal3756
@pratikburnwal3756 3 жыл бұрын
Can you please make a video for JWT Token or Octa Token implementation with interview questions ?
@CodeDecode
@CodeDecode 3 жыл бұрын
That is what we are going to cover in upcoming videos. We will cover it all. Stick with me 👍👍
@reviewon
@reviewon 4 ай бұрын
Interviewer may ask - 17:10 where default username as user defined and can we change both unm and pass from code?
@mummidisettybhagavan243
@mummidisettybhagavan243 3 жыл бұрын
Please do some videos on spring batch interview questions.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure, it's a nice topic. We will do that soon 👍👍
@k.sramakrishnareddy1271
@k.sramakrishnareddy1271 3 жыл бұрын
Please, do a video on Multithreading concepts
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@surbhigupta6471
@surbhigupta6471 3 жыл бұрын
Please make videos on microservice interview questions as well please
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Surbhi. It's in a queue. We will soon post it 👍👍
@sreejak6776
@sreejak6776 2 жыл бұрын
Could you pls extend the series and create video regarding filters
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Sreeja 👍👍
@rahimkhan-fh9dd
@rahimkhan-fh9dd 3 жыл бұрын
It has been more than 2 weeks you uploaded spring security video. Please upload remaining SpringBoot security related videos, It will help alot to those who are preparing for java interview.
@CodeDecode
@CodeDecode 3 жыл бұрын
Yes Rahim. It's in process and scheduled for Tuesday morning. 👍👍.
@rahimkhan-fh9dd
@rahimkhan-fh9dd 3 жыл бұрын
@@CodeDecode Wow, You replied too fast.. Watching your other java interview videos all are awesome.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Rahim. 👍👍 we hope you reach your dream job really soon 👍👍 All the very best 👍👍
@CodeDecode
@CodeDecode 3 жыл бұрын
part 2 is live now kzfaq.info/get/bejne/es5ypKaQu9-WaKM.html
@diksharagase1315
@diksharagase1315 3 жыл бұрын
Please cover spring ioc dependency injection questions
@CodeDecode
@CodeDecode 3 жыл бұрын
That's nice topic Diksha 👍👍 we will surely cover that
@ffrreeaakk
@ffrreeaakk 2 жыл бұрын
Moooore, pls
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure 👍
@saumyasrivastava5577
@saumyasrivastava5577 3 жыл бұрын
Helpful video mam. Can you please make a video on jwt..already waiting for it..
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure, that we will cover in next video. 👍👍
@saumyasrivastava5577
@saumyasrivastava5577 3 жыл бұрын
@@CodeDecode by when we can expect the next video.? Eagerly waiting.
@aslearning4818
@aslearning4818 3 жыл бұрын
Very helpful video.... Just have one query... I am new to spring security and want to implement it in my local project (based on spring boot and angular 8). As you have mentioned, spring -security dependency automatically creates login page for us, but how can I pass this username and password values to my angular app as I have login page already created in angular 8. Please help.
@CodeDecode
@CodeDecode 3 жыл бұрын
That's s very nice question 👍👍. But it's difficult to explain this here. We will create a video on this. We already have angular videos, we will create one, merging both angular and spring boot with security.
@aslearning4818
@aslearning4818 3 жыл бұрын
@@CodeDecode Np. Waiting for upload 😄
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍thanks 🙂🙂
@gyanaranjanbarik411
@gyanaranjanbarik411 3 жыл бұрын
Really it helps us .. Make web service series mam
@CodeDecode
@CodeDecode 3 жыл бұрын
sure we will create that soon.....
@vinayathina4766
@vinayathina4766 2 жыл бұрын
please create advanced series of restful web services.
@CodeDecode
@CodeDecode 2 жыл бұрын
kzfaq.info/sun/PLyHJZXNdCXsfCaQiui_BG7P23e2NTIj0U
@rahul.ranjan1242
@rahul.ranjan1242 3 жыл бұрын
Hi madam, pls make videos on the implementation of JWT & Oauth.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍we will take it in next video for sure. Thanks for the suggestion 👍👍
@rahul.ranjan1242
@rahul.ranjan1242 3 жыл бұрын
@@CodeDecode thanks madam, waiting for this
@CodeDecode
@CodeDecode 3 жыл бұрын
thanks for sticking with us 👍👍
@sushilmadankar53
@sushilmadankar53 3 жыл бұрын
You haven't covered how to configure user roles and restrict APIs
@CodeDecode
@CodeDecode 3 жыл бұрын
That we will cover in upcoming videos. Can't cover ever thing in one video na. Please stick with me, we will cover it all. 👍👍
@harshitsachdeva4836
@harshitsachdeva4836 3 жыл бұрын
Make videos on junit mockito.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure. It's in our list 👍. We will do that
@narraleelakrishnavasavi9757
@narraleelakrishnavasavi9757 3 жыл бұрын
Can u please do video on solid principles
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍
@sagaraiwale
@sagaraiwale 2 жыл бұрын
Please create for Oauth2
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Pratik. We will do that 👍👍
@indlasubramanyam9510
@indlasubramanyam9510 3 жыл бұрын
upload continue parts as early as possible plzzzzzz sis
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Indla. We were not getting response on this video hence we moved on to multi threading . Thanks for letting us know. We will upload next video soon 👍👍
@indlasubramanyam9510
@indlasubramanyam9510 3 жыл бұрын
@@CodeDecode don't depends on response. We are here for support your Chanel. Tq's for taking consideration.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Thanks 👍👍
@Preethipree1
@Preethipree1 3 жыл бұрын
Hi, Could you please tell me like how to Authorise in Postman. When I'm trying to hit the url from postman, It says 401 Unauthorised. I've set username and password in Authorization tab in Postman. But still I'm unable to access my endpoint. Could you please help me?
@CodeDecode
@CodeDecode 3 жыл бұрын
please check what kind of authorization is needed, is token involved ? if so pass token details too
@cookies4techies992
@cookies4techies992 3 жыл бұрын
Can you please share that PPT
@elangabathra6779
@elangabathra6779 3 жыл бұрын
Please post oath2 with database validation security
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure we will post it soon.....
@elangabathra6779
@elangabathra6779 3 жыл бұрын
@@CodeDecode please post spring security using ldap
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure. We will do that too when we pick security playlist 👍👍
@elangabathra6779
@elangabathra6779 3 жыл бұрын
@@CodeDecode Thank you🙂
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for helping us with topics that viewers are interested in 👍👍🙂🙂🙏🙏
@saranyavivekanandan9044
@saranyavivekanandan9044 2 жыл бұрын
Hi mam, Does Spring security use any tokens?
@CodeDecode
@CodeDecode 2 жыл бұрын
Any token can be used, jwt is usually used
@TraderNav
@TraderNav 3 жыл бұрын
Where and how can we have your ppt file Mam
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 23 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 68 МЛН
Implementing JWT (JSON Web Tokens) with Spring Security in Springboot App
36:25
Top 25 Microservice Interview Questions Answered - Java Brains
39:54
Spring Tips: The Spring Authorization Server
22:21
SpringDeveloper
Рет қаралды 16 М.
Spring Boot + Spring Security + JWT from scratch - Java Brains
39:29
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 23 МЛН