Spring Security in one video | Spring Security Crash Course | HINDI

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 238

  • @poorpanda9033
    @poorpanda9033 Год назад +28

    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

  • @mohammadasif5798
    @mohammadasif5798 8 месяцев назад +8

    Most of the classes are deprecated. can you please re-upload spring security module with latest version of spring boot.

  • @varshassawlani63
    @varshassawlani63 2 года назад +3

    aap farishte ho bhagwan ke. amazing tutorial. Grateful I found you on youtube. we need more educators like you.

  • @codemonk8377
    @codemonk8377 2 года назад +23

    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);
    }
    }

  • @jiteshsingh98
    @jiteshsingh98 3 года назад +49

    Microservices & Spring Framework Ke Sabhi Components Pe Full Course Banaiye Plz

  • @ashwins1936
    @ashwins1936 Год назад +1

    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 🎉

    • @developer_opm
      @developer_opm 8 месяцев назад

      bro can you tell me how can i be good at backend with spring boot as beginer

  • @ankithsaireddy9399
    @ankithsaireddy9399 7 месяцев назад +1

    This is So Next Level In-depth, I just love the way you explained such a Difficult conccept

  • @vikramvaishnav22
    @vikramvaishnav22 Год назад +7

    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

  • @aakashzinzurao5029
    @aakashzinzurao5029 5 месяцев назад

    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.

  • @Byte_The_Universe
    @Byte_The_Universe 8 месяцев назад

    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.

  • @DeepakGupta-pz4fx
    @DeepakGupta-pz4fx 3 года назад +4

    Great sir outstanding 👏only aap hi ek jo students ki dil ki baat sunte ho😍😍

  • @AVillager5
    @AVillager5 3 года назад +1

    Dil jeet liya Sir.....Thanks for Quality Teaching

  • @pratikgaikwad688
    @pratikgaikwad688 2 года назад +16

    Spring security module starts at 39:00

  • @haseebraza1996
    @haseebraza1996 Год назад +1

    durgaish literally saving me from getting kicked from my job

  • @AshishSingh-sc5bu
    @AshishSingh-sc5bu 3 года назад +9

    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

  • @yashasati9060
    @yashasati9060 6 месяцев назад

    My Go-to content on RUclips for Spring! Amazing

  • @amitkumar7221
    @amitkumar7221 2 года назад +1

    Bhai this guy is superb, you are genius bro may God give you whatever you want 🌹🌹🌹

  • @sonitrajput7590
    @sonitrajput7590 Год назад +3

    in spring 3.1WebSecurityConfigurerAdapter has been deprecated what to do?

  • @dharmendragorana5123
    @dharmendragorana5123 3 года назад +5

    Waiting Ended Here🔥🔥🔥🔥🔥Thanks Guruji..

  • @a.m.jyotiprakashsahu5754
    @a.m.jyotiprakashsahu5754 2 года назад +3

    WebSecurityConfigurerAdapter is deprecated now on spring security version 5.7. Please make a video on latest version.

  • @saurabhkawatra8938
    @saurabhkawatra8938 3 года назад +3

    Sir! Apna diet bata do, itna patience kaha se... You are Amazing 😁😁😁😁

  • @pramodp4321
    @pramodp4321 3 года назад +2

    Followed the exact steps...worked for me 💯

  • @nileshpawar4735
    @nileshpawar4735 3 года назад +9

    Durgesh sir , Thank you so much for this wonderful video...pls bring next 2nd part of microservices 🙏

    • @BharatKumar-oo1pw
      @BharatKumar-oo1pw 3 года назад +1

      Please upload second part of microservices video

  • @Dr-Doggo
    @Dr-Doggo 3 года назад +17

    This was exactly I was waiting for. Next Microservices please.

    • @jayantkatiyar9128
      @jayantkatiyar9128 3 года назад

      He already did microservices

    • @Dr-Doggo
      @Dr-Doggo 3 года назад +1

      @@jayantkatiyar9128 It was just introduction, he told he would bring another video if video completes 1k likes

  • @subhosen4933
    @subhosen4933 2 года назад +2

    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

  • @bhupendra_dubey125
    @bhupendra_dubey125 2 года назад +1

    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..

  • @Deepak45871
    @Deepak45871 Год назад

    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

  • @shwetabhat9981
    @shwetabhat9981 3 года назад +19

    Much awaited and amazing content sir . Thank You 🙂 . Kindly post Microservices tutorial next if possible as it's one of the "Must haves" today .

  • @sourabhfulmali3923
    @sourabhfulmali3923 3 года назад +6

    Junit Testing ke upar aur debugging ke videos banao sir.. 👍👍this video very useful

  • @laljirathod1749
    @laljirathod1749 2 года назад

    Very very good sir , i seen lot of video but i didn't get this much of clearity..

  • @s.m.h2738
    @s.m.h2738 10 месяцев назад

    Sir please make video on debugger, how efficiently we can use debugger,I am a fresher and I badly stuck in debugging my project

  • @sachinpete4507
    @sachinpete4507 2 года назад

    Now I got understanding how spring security works thank a lot 🙏

  • @saritaprasad4295
    @saritaprasad4295 2 года назад

    you are owsome sir! you are taking care the poor students like me

  • @manavsharmaer
    @manavsharmaer 2 года назад +2

    Please provide the contents that would be covered in every video in the description. Someone might only need to learn some particular concept. Thanks

  • @iplbettingdream11expert77
    @iplbettingdream11expert77 10 месяцев назад +1

    Sir without websecurityAdabter ka carsh course ka video banaye

  • @prateekgirilateralentry5865
    @prateekgirilateralentry5865 Год назад

    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.

  • @-hLokesh
    @-hLokesh 5 дней назад

    make a video on debugging angular ,react application as well

  • @zuberdiwan8123
    @zuberdiwan8123 2 года назад

    Thank you so much for this wonderful video....Very Well Explain..Thank You.......👌👌👌

  • @hopelesssouldisappointment5121
    @hopelesssouldisappointment5121 3 года назад +1

    durgesh bhai debugging pe ek crash course video banadena bahut helpful hoga❤️❤️❤️❤️love ur videos

  • @sandeepprabhakula7714
    @sandeepprabhakula7714 Год назад +1

    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!

  • @GauravSingh-bu9xt
    @GauravSingh-bu9xt 3 года назад +2

    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

  • @ankitratnani2439
    @ankitratnani2439 3 года назад +2

    please make video on spring boot Actuator

  • @RideTechTravelChronicles
    @RideTechTravelChronicles Год назад

    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.

  • @shyammali3461
    @shyammali3461 Год назад

    Thank you for your amazing Spring Security tutorials ☺

  • @aneksingh4496
    @aneksingh4496 Год назад

    very clearly ,crispy and point to point explanation ...great work ...please keep it up

    • @jayaprakashrao9006
      @jayaprakashrao9006 Год назад

      Is the websecurityconfigureradapter is resolved for you???

    • @pradeepsiota8776
      @pradeepsiota8776 8 месяцев назад

      @@jayaprakashrao9006 i am also geting this issue

  • @rahullambe2858
    @rahullambe2858 2 года назад +1

    Sir thank you ❤️🙏🤝 your teaching very helpful

  • @AnantPratapSingh-s7d
    @AnantPratapSingh-s7d Год назад

    yes sir I want to go deep in debugging

  • @DineshKumar-l9f4p
    @DineshKumar-l9f4p Год назад

    Nice tutorial and simple to understand.

  • @AbhishekSingh-dq3em
    @AbhishekSingh-dq3em 6 месяцев назад +1

    I am not getting the import for WebSecurityConfigurerAdapter

  • @suyashjaiswal4807
    @suyashjaiswal4807 3 года назад +1

    Superb explanation sir
    Please make a series on security topics, jaise ye h waise bhi for oauth2, jwt

  • @chekrasena
    @chekrasena 3 года назад +1

    Make a video on Java Roadmap(spring microservices react)
    .
    how to start java with ur playlist and finish roadmap

  • @amolpatil2140
    @amolpatil2140 7 месяцев назад

    Thank you so much Durgesh sir....🙏🙏🙏

  • @preetijadhav2550
    @preetijadhav2550 5 месяцев назад +1

    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 ??

    • @ShikshaJain-f9v
      @ShikshaJain-f9v 5 месяцев назад +1

      Facing same issue

    • @preetijadhav2550
      @preetijadhav2550 5 месяцев назад

      @@ShikshaJain-f9v WebSecurityConfigurerAdapter is deprecated from spring security in 5.7 version you can try SecurityFilterChain instead of that

    • @preetijadhav2550
      @preetijadhav2550 5 месяцев назад

      @@ShikshaJain-f9v yes WebSecurityConfigurerAdapter is deprecated from spring security 5.7 version you can use SecurityFilterChain instead of that

  • @I_am_nus
    @I_am_nus 2 года назад +1

    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.

    • @AdityaKumar-ym3fy
      @AdityaKumar-ym3fy 2 года назад

      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.

    • @proxy5061
      @proxy5061 2 года назад

      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

  • @rocklee7574
    @rocklee7574 2 года назад +14

    the classes you are using is depricated....

    • @AvinashKumar-mh6si
      @AvinashKumar-mh6si 4 месяца назад

      Yaa, this may not be applicable 100%, bit concept would be same. Can't we use old Spring Boot ?

  • @gauravrathaur7265
    @gauravrathaur7265 Год назад

    sir... is there any video which shows security with Google/Facebook etc?

  • @karthikeyanchidambaram6560
    @karthikeyanchidambaram6560 Год назад

    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 !

  • @koushikpan1320
    @koushikpan1320 Год назад

    I am Watching your video late. You asked if we need videos on debugging. If not made already please do that.

  • @vishalkale8294
    @vishalkale8294 2 года назад

    Excellent explanation, Thank you sir .

  • @prashantsinghrajput9709
    @prashantsinghrajput9709 2 года назад

    Please come up with full course of spring security
    Please

  • @saurabhsinghchauhan5219
    @saurabhsinghchauhan5219 10 месяцев назад

    crystal clear explaination :)

  • @dhanshribhavsar6753
    @dhanshribhavsar6753 Год назад

    Please make debugging related vedio as well. Thanks!

  • @mallikarjunhagargi7830
    @mallikarjunhagargi7830 3 года назад +5

    Bro, no single dislike, that proves your quality of content 👌

  • @dipakkadam2316
    @dipakkadam2316 3 года назад +1

    Woooooo, long awaited for this course. Thanks Durgesh sir.

  • @chandanpatel6528
    @chandanpatel6528 3 года назад +1

    Please do some videos on debugging

  • @yashlokhande2890
    @yashlokhande2890 2 года назад

    Amazing!the way you explain.

  • @yashgupta-dw7sn
    @yashgupta-dw7sn 3 года назад +2

    the video starts at 40:00. Thank me later

  • @PANKAJKUMAR-hz8nh
    @PANKAJKUMAR-hz8nh Год назад

    Very useful and clear content

  • @niharikajaiswal5215
    @niharikajaiswal5215 2 года назад +1

    one of the best.❤‍🔥

  • @AliRaza-us3tu
    @AliRaza-us3tu 2 года назад

    make a video for new implementation for oauth2 in spring boot
    Thanks

  • @DeepakKumar-rh4lq
    @DeepakKumar-rh4lq 3 года назад

    Microservices ke sab components pe video bnaiye sir....

  • @sheikhmohduzair2886
    @sheikhmohduzair2886 Год назад

    debugging ke kuch hacks aur important point pe video banao intellij me.

  • @KhiladiRocky
    @KhiladiRocky 3 года назад

    Multiple microservices ko protect kaise kr sakte h bhai, please video bana do

  • @komaljirage6794
    @komaljirage6794 3 года назад

    Really thank you sir and very helpful video much awaiting.

  • @rupeshdulal4677
    @rupeshdulal4677 3 года назад +1

    please create spring boot WEBSOCKET chat application between user to user (one to one)

  • @mohammedadil3281
    @mohammedadil3281 2 года назад

    Amazinggg Content on spring security

  • @mujahedshaikh5212
    @mujahedshaikh5212 3 года назад

    Thanks Durgesh.. Waiting ended here🙏

  • @anweshabhisek7549
    @anweshabhisek7549 Год назад

    Yes sir please make videos in how to debug , and sir please make the debugging videos in sts

  • @rupeshpatil5279
    @rupeshpatil5279 2 года назад

    Thanks a lot brother.. This video helped me to brush-up the concepts and learned new things as well. Thanks again

  • @akshayparulekar4550
    @akshayparulekar4550 3 года назад

    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.

  • @samirshrestha5252
    @samirshrestha5252 2 года назад

    Sir, I didn't understood the concept of CSRF. Kindly make a video on it too.

    • @anandrana7340
      @anandrana7340 2 года назад

      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.

  • @jahangirkalwar3759
    @jahangirkalwar3759 2 года назад

    nice tutorial sir, but please upload a series on microservices with spring boot.

  • @afrindishahara7469
    @afrindishahara7469 2 года назад

    Sir Please Post Spring Cloud Eureka tutorial.

  • @gamerg9271
    @gamerg9271 3 года назад

    Microservices & Spring Framework sir please and thank you so much ..

  • @karthikeyanchidambaram6560
    @karthikeyanchidambaram6560 Год назад

    How do you customize the basic and form authentication screen using your own css an labels ?

  • @anuragmall7924
    @anuragmall7924 3 года назад

    Durgesh Bhai please do one video on debugging

  • @gauravrathaur7265
    @gauravrathaur7265 Год назад

    wow sir... awesome tutorial

  • @rtsky4344
    @rtsky4344 3 года назад

    sir if possible then pls make the video of .....
    how to make carousel of card in react js

  • @Shaileshks1111
    @Shaileshks1111 3 года назад

    Thanks for uploading spring security

  • @areebafatima7436
    @areebafatima7436 2 года назад

    Thanks for the tutorial. Really really good content.

  • @MOHITSINGH-cv5qe
    @MOHITSINGH-cv5qe 3 года назад

    Very very very thank you sir for this video , seriously thanks a lot 🙏🙏🙏🙏🙏

  • @yogeshkalalkar2262
    @yogeshkalalkar2262 3 года назад +1

    briliant work sir

  • @saundaryasrivastava8638
    @saundaryasrivastava8638 3 года назад

    well done sir .. you are truly doing great job. thanks alot

  • @mdsaddamkhan8400
    @mdsaddamkhan8400 3 года назад

    Meri man ki murad puri ho gyi

  • @mastmelodytrip
    @mastmelodytrip 2 года назад +1

    Feign client microservices pr video banao sir plz

  • @goku6272
    @goku6272 3 года назад +1

    please make one video on lifecycle phases and goals plugins in maven

  • @AnkitKumar_sun2013
    @AnkitKumar_sun2013 3 года назад

    @learnwithdurgesh can you please share which theme you are using in intellij , it's soo good on eyes

  • @khan0404
    @khan0404 3 года назад

    Shandar explained

  • @pradeepsiota8776
    @pradeepsiota8776 8 месяцев назад

    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

  • @Aristh1234
    @Aristh1234 2 года назад

    Very nice..thanks a lot for your hard work 👏 💪