14:30 - Important Points 39:00 - Spring Security 43:28 - Spring Security Working Flow: 49:37 - Understanding the working flow in IDE 55:41 - Working of PostMan 57:26 - Basic Authentication 1:05:16 - Creating our own user & login 1:13:00 - Password Encoder 1:25:59 - Role based Authentication 1:36:00 - Understanding about @PreAuthorize (method level security) 1:38:00 - CSRF 1:47:55 - Form based Authentication 2:09:45 - Working with Real Database
When i first started with spring boot ,i didn't understand anything in this video. But after 1 month when i watch this video again now i understood everything. Every possible errors and how you handle it which helped me a lot No one explains like you. But for beginners this video might not make any sense. But once they understand basics this is must watch video 🎉
Please try to complete this timestamp. Time Stamp: Spring Security Working Flow: 43:28 Types of Authentication- 1. Basic Authentication: 55:00 Basic Authentication - Ant Matcher: 01:18:40 Basic Authentication - Role Based Authentication: 01:26:30 Basic Authentication - CSRF: 01:37:50 2. Form Based Authentication: 01:47:30
I had one minor issue (403 forbidden error) because of privileges (USER,ADMIN). The mistake that I had done was not added the "ROLE" prefix before the roles like (USER,ADMIN). Use the roles be like (ROLE_USER,ROLE_ADMIN). Thank you durgesh for this video.
Sir, I have seen all of your videos and I can clearly say that I had learnt a lot from your videos. Sir please make one video on login, based on roles by fetching data from database. I had searched all over the internet but none of the video helped me out. If u got time then sir please make video on this using spring boot(Web Application). Thank you for the videos-tutorials that u had already made so far
Spring Security Explained in short and crisp way. Great Content Durgesh Bhaiya. You have covered all the basic things on Spring Security. Loved your Content
hi Durgesh,,its amnazing vdo in hindi..many indians tach need that ...i also cleared my doubt for interviews....keep rocking...if you have this kind paid workshop for others like giuthub , data structure etc i ll try to join..thanks again..
Thank you for your amazing Spring Security tutorials 😃. Your clear explanations and dedication have been a game-changer for my understanding of this complex subject. I appreciate your generosity in sharing your knowledge with the world.
Hello sir. Firstly, it's a great tutorial beginners can easily learn spring security. Secondly, I'm working on my project where I'm facing an issue that "user are able to access the data of other users". In simple words no user should have the authority to read or manipulate data of other users except theirs. There's no scope of admin and user-based authorization. because there's no such content that users should not see. Every user has their own data, and it should not be visible to others except the current authorized user.
Please suggest me how to do customized authorization on each user. Thanks in advance!
sir,I saw your video on spring boot and reactJS that is a good video. I want to learn about spring boot with react JS project with login authentication
Hi , I am a big fan of you , Please can you tell us about debugging the fully fledged web application, how a certain element of web page call certain api , how the request flows, Its very important for us to understand the api call.
Thanks for this video. I really appreciate your efforts. So I am trying to implement the same project but I am unable to extend the WebSecurityConfigurerAdapter class so which class I should use ??
2:31:38, We are not able to access because we have used hasRole. When using database use hasAuthority instead and it will work without appending Role_ explicitly in DB.
Bro, apart from this tutorial what other tutorial should I watch to get complete knowledge of Spring Security. Tell me about videos from Learn Code with Durgesh channel only.
bro which IDE , your are working in!! durgeesh sir uising inteliJ community am also using the same but Community version wont support MVC! how you guys did?? MVC forms and all
Super video. Highly recommendable. (But remember our Indian made videos are becoming world famous i heard. So next time prepare videos in English or with English subtitles if you are narrating i Hindi.) Very very nice video. Hats off !
Firebase ki tarah MySQL jaise relation database se REAL TIME response milane ke liye istmal kiye jane wale Spring Boot WebSocket ki video banaiye. MessageBroker vaigera kya hota hei wo bahot padhkar bhi smz nhi aa raha hei.
in simple word we can say, let an authorised user open a bank website to check account balance , if any attacker generate the link , and the attacker sends that link to an authorised user by mistake an authorised user click on that link then that case attacker stole the data or may be transfer a money by setting the program like that , if csrf is not disable, if we disable csrf then it do not harm our data , now a days this type of problem not happend due to implement higher security.
when is try to extend the mySecurityConfig with WebSecurityConfigurerAdapter it give error The import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter cannot be resolved
14:30 - Important Points
39:00 - Spring Security
43:28 - Spring Security Working Flow:
49:37 - Understanding the working flow in IDE
55:41 - Working of PostMan
57:26 - Basic Authentication
1:05:16 - Creating our own user & login
1:13:00 - Password Encoder
1:25:59 - Role based Authentication
1:36:00 - Understanding about @PreAuthorize (method level security)
1:38:00 - CSRF
1:47:55 - Form based Authentication
2:09:45 - Working with Real Database
😊😊
Nice. Thanks for telling this.
Most of the classes are deprecated. can you please re-upload spring security module with latest version of spring boot.
aap farishte ho bhagwan ke. amazing tutorial. Grateful I found you on youtube. we need more educators like you.
Security Config Upto 1:25:00 (After removing deprecated code)
package com.practice.security.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.provisioning.InMemoryUserDetailsManager;
import org.springframework.security.web.SecurityFilterChain;
import static org.springframework.security.config.Customizer.withDefaults;
@Configuration
@EnableWebSecurity
public class MySecurityConfig {
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http
.authorizeHttpRequests((authz) -> authz
// .antMatchers("/home", "/login", "/register").permitAll()
.antMatchers("/public/*").permitAll()
.anyRequest().authenticated()
)
.httpBasic(withDefaults());
return http.build();
}
@Bean
public InMemoryUserDetailsManager userDetailsService() {
UserDetails user = User.builder()
.username("user")
.password(this.passwordEncoder().encode("password"))
.roles("USER")
.build();
UserDetails admin = User.builder()
.username("admin")
.password(this.passwordEncoder().encode("password"))
.roles("USER", "ADMIN")
.build();
return new InMemoryUserDetailsManager(user, admin);
}
@Bean
public PasswordEncoder passwordEncoder() {
return new BCryptPasswordEncoder(10);
}
}
Microservices & Spring Framework Ke Sabhi Components Pe Full Course Banaiye Plz
When i first started with spring boot ,i didn't understand anything in this video. But after 1 month when i watch this video again now i understood everything. Every possible errors and how you handle it which helped me a lot
No one explains like you. But for beginners this video might not make any sense. But once they understand basics this is must watch video 🎉
bro can you tell me how can i be good at backend with spring boot as beginer
This is So Next Level In-depth, I just love the way you explained such a Difficult conccept
Please try to complete this timestamp.
Time Stamp:
Spring Security Working Flow: 43:28
Types of Authentication-
1. Basic Authentication: 55:00
Basic Authentication - Ant Matcher: 01:18:40
Basic Authentication - Role Based Authentication: 01:26:30
Basic Authentication - CSRF: 01:37:50
2. Form Based Authentication: 01:47:30
Thank you sir! I read books and tutorials but, I didn't got how internally it works and how we can use. You r really great.
I had one minor issue (403 forbidden error) because of privileges (USER,ADMIN). The mistake that I had done was not added the "ROLE" prefix before the roles like (USER,ADMIN). Use the roles be like (ROLE_USER,ROLE_ADMIN). Thank you durgesh for this video.
Great sir outstanding 👏only aap hi ek jo students ki dil ki baat sunte ho😍😍
Dil jeet liya Sir.....Thanks for Quality Teaching
Spring security module starts at 39:00
durgaish literally saving me from getting kicked from my job
Sir, I have seen all of your videos and I can clearly say that I had learnt a lot from your videos. Sir please make one video on login, based on roles by fetching data from database. I had searched all over the internet but none of the video helped me out. If u got time then sir please make video on this using spring boot(Web Application). Thank you for the videos-tutorials that u had already made so far
Sorry javainuse website
My Go-to content on RUclips for Spring! Amazing
Bhai this guy is superb, you are genius bro may God give you whatever you want 🌹🌹🌹
in spring 3.1WebSecurityConfigurerAdapter has been deprecated what to do?
Waiting Ended Here🔥🔥🔥🔥🔥Thanks Guruji..
WebSecurityConfigurerAdapter is deprecated now on spring security version 5.7. Please make a video on latest version.
Sir! Apna diet bata do, itna patience kaha se... You are Amazing 😁😁😁😁
Followed the exact steps...worked for me 💯
Durgesh sir , Thank you so much for this wonderful video...pls bring next 2nd part of microservices 🙏
Please upload second part of microservices video
This was exactly I was waiting for. Next Microservices please.
He already did microservices
@@jayantkatiyar9128 It was just introduction, he told he would bring another video if video completes 1k likes
Spring Security Explained in short and crisp way. Great Content Durgesh Bhaiya. You have covered all the basic things on Spring Security. Loved your Content
hi Durgesh,,its amnazing vdo in hindi..many indians tach need that ...i also cleared my doubt for interviews....keep rocking...if you have this kind paid workshop for others like giuthub , data structure etc i ll try to join..thanks again..
Extremely useful video, please share the link for debugging if you have already created a video, and if not then please create a video on debugging
Much awaited and amazing content sir . Thank You 🙂 . Kindly post Microservices tutorial next if possible as it's one of the "Must haves" today .
Junit Testing ke upar aur debugging ke videos banao sir.. 👍👍this video very useful
Very very good sir , i seen lot of video but i didn't get this much of clearity..
Sir please make video on debugger, how efficiently we can use debugger,I am a fresher and I badly stuck in debugging my project
Now I got understanding how spring security works thank a lot 🙏
you are owsome sir! you are taking care the poor students like me
Please provide the contents that would be covered in every video in the description. Someone might only need to learn some particular concept. Thanks
Sir without websecurityAdabter ka carsh course ka video banaye
Thank you for your amazing Spring Security tutorials 😃. Your clear explanations and dedication have been a game-changer for my understanding of this complex subject. I appreciate your generosity in sharing your knowledge with the world.
make a video on debugging angular ,react application as well
Thank you so much for this wonderful video....Very Well Explain..Thank You.......👌👌👌
durgesh bhai debugging pe ek crash course video banadena bahut helpful hoga❤️❤️❤️❤️love ur videos
Hello sir. Firstly, it's a great tutorial beginners can easily learn spring security. Secondly, I'm working on my project where I'm facing an issue that "user are able to access the data of other users".
In simple words no user should have the authority to read or manipulate data of other users except theirs.
There's no scope of admin and user-based authorization. because there's no such content that users should not see. Every user has their own data, and it should not be visible to others except the current authorized user.
Please suggest me how to do customized authorization on each user.
Thanks in advance!
sir,I saw your video on spring boot and reactJS that is a good video. I want to learn about spring boot with react JS project with login authentication
please make video on spring boot Actuator
Hi , I am a big fan of you , Please can you tell us about debugging the fully fledged web application, how a certain element of web page call certain api , how the request flows, Its very important for us to understand the api call.
Thank you for your amazing Spring Security tutorials ☺
very clearly ,crispy and point to point explanation ...great work ...please keep it up
Is the websecurityconfigureradapter is resolved for you???
@@jayaprakashrao9006 i am also geting this issue
Sir thank you ❤️🙏🤝 your teaching very helpful
yes sir I want to go deep in debugging
Nice tutorial and simple to understand.
I am not getting the import for WebSecurityConfigurerAdapter
Superb explanation sir
Please make a series on security topics, jaise ye h waise bhi for oauth2, jwt
Make a video on Java Roadmap(spring microservices react)
.
how to start java with ur playlist and finish roadmap
Thank you so much Durgesh sir....🙏🙏🙏
Thanks for this video. I really appreciate your efforts. So I am trying to implement the same project but I am unable to extend the WebSecurityConfigurerAdapter class so which class I should use ??
Facing same issue
@@ShikshaJain-f9v WebSecurityConfigurerAdapter is deprecated from spring security in 5.7 version you can try SecurityFilterChain instead of that
@@ShikshaJain-f9v yes WebSecurityConfigurerAdapter is deprecated from spring security 5.7 version you can use SecurityFilterChain instead of that
2:31:38, We are not able to access because we have used hasRole. When using database use hasAuthority instead and it will work without appending Role_ explicitly in DB.
Bro, apart from this tutorial what other tutorial should I watch to get complete knowledge of Spring Security. Tell me about videos from Learn Code with Durgesh channel only.
bro which IDE , your are working in!! durgeesh sir uising inteliJ community am also using the same but Community version wont support MVC! how you guys did?? MVC forms and all
the classes you are using is depricated....
Yaa, this may not be applicable 100%, bit concept would be same. Can't we use old Spring Boot ?
sir... is there any video which shows security with Google/Facebook etc?
Super video. Highly recommendable.
(But remember our Indian made videos are becoming world famous i heard.
So next time prepare videos in English or with English subtitles if you are narrating i Hindi.)
Very very nice video. Hats off !
I am Watching your video late. You asked if we need videos on debugging. If not made already please do that.
Excellent explanation, Thank you sir .
Please come up with full course of spring security
Please
crystal clear explaination :)
Please make debugging related vedio as well. Thanks!
Bro, no single dislike, that proves your quality of content 👌
Woooooo, long awaited for this course. Thanks Durgesh sir.
Please do some videos on debugging
Amazing!the way you explain.
the video starts at 40:00. Thank me later
Thank you ,😇
Very useful and clear content
one of the best.❤🔥
make a video for new implementation for oauth2 in spring boot
Thanks
Microservices ke sab components pe video bnaiye sir....
debugging ke kuch hacks aur important point pe video banao intellij me.
Multiple microservices ko protect kaise kr sakte h bhai, please video bana do
Really thank you sir and very helpful video much awaiting.
please create spring boot WEBSOCKET chat application between user to user (one to one)
Amazinggg Content on spring security
Thanks Durgesh.. Waiting ended here🙏
Yes sir please make videos in how to debug , and sir please make the debugging videos in sts
Thanks a lot brother.. This video helped me to brush-up the concepts and learned new things as well. Thanks again
Firebase ki tarah MySQL jaise relation database se REAL TIME response milane ke liye istmal kiye jane wale Spring Boot WebSocket ki video banaiye. MessageBroker vaigera kya hota hei wo bahot padhkar bhi smz nhi aa raha hei.
Sir, I didn't understood the concept of CSRF. Kindly make a video on it too.
in simple word we can say, let an authorised user open a bank website to check account balance , if any attacker generate the link , and the attacker sends that link to an authorised user by mistake an authorised user click on that link then that case attacker stole the data or may be transfer a money by setting the program like that , if csrf is not disable, if we disable csrf then it do not harm our data , now a days this type of problem not happend due to implement higher security.
nice tutorial sir, but please upload a series on microservices with spring boot.
Sir Please Post Spring Cloud Eureka tutorial.
Microservices & Spring Framework sir please and thank you so much ..
How do you customize the basic and form authentication screen using your own css an labels ?
Durgesh Bhai please do one video on debugging
wow sir... awesome tutorial
sir if possible then pls make the video of .....
how to make carousel of card in react js
Thanks for uploading spring security
Thanks for the tutorial. Really really good content.
Very very very thank you sir for this video , seriously thanks a lot 🙏🙏🙏🙏🙏
briliant work sir
well done sir .. you are truly doing great job. thanks alot
Meri man ki murad puri ho gyi
Feign client microservices pr video banao sir plz
please make one video on lifecycle phases and goals plugins in maven
@learnwithdurgesh can you please share which theme you are using in intellij , it's soo good on eyes
Shandar explained
when is try to extend the mySecurityConfig with WebSecurityConfigurerAdapter it give error The import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter cannot be resolved
Very nice..thanks a lot for your hard work 👏 💪