JWT with Spring boot Authentication & Authorization | Spring Security full demo in Spring Boot 3 #1

Поділитися
Вставка
  • Опубліковано 30 гру 2023
  • JWT with Spring boot Authentication & Authorization | Spring Security full demo in Spring Boot 3 | Part #1
    You will learn :
    #Create #Spring Boot #project
    #Create #restapis
    #CRUD operation with #jpa #mysql
    #springsecurity #Authentication #authorization
    GitHub link : github.com/sksingh1993/spring...

КОМЕНТАРІ • 49

  • @_PrachiTodkari
    @_PrachiTodkari 6 місяців тому +14

    This the first video by which I have implemented the JWT authentication without any errors. Thank you.

    • @tech-soft
      @tech-soft  6 місяців тому +1

      Thank for your comment, I will try to make easy to understand everyone.

    • @nk461
      @nk461 5 місяців тому

      All the other tutorials on UA-cam are scam. This one works, thank you @tech-soft

  • @manishkumarchoudhary6465
    @manishkumarchoudhary6465 6 місяців тому +2

    Very easy Explanation, Thank You

  • @sanketsaitawdekar4440
    @sanketsaitawdekar4440 5 місяців тому +3

    Finally found a working code. Thankyou so much.

    • @tech-soft
      @tech-soft  5 місяців тому

      Thank you so much

  • @user-yo5vg2jr3t
    @user-yo5vg2jr3t 6 місяців тому +4

    This is good for beginners (its very simple ) complete demo

  • @hpq9650
    @hpq9650 Місяць тому

    thanks bro, i love you

  • @AmitKumar-tb6ze
    @AmitKumar-tb6ze 2 місяці тому +1

    thank you so much brother for making this video, this help me to remove deprecated code for filterchain method

  • @user-sk8er2yu3j
    @user-sk8er2yu3j 5 місяців тому +2

    successfully implemented thanks

  • @RabiulIslam-lx1uc
    @RabiulIslam-lx1uc 6 місяців тому +1

    Good

  • @pankajthakur9760
    @pankajthakur9760 Місяць тому

    Hello great video how integrate this code with html I mean template?

  • @hind5687
    @hind5687 3 місяці тому +1

    I took this and it works very well , thank you so much .. please can you do logout ? or give me steeps what i should follow for do it by myself , i'm really in need , thanks

    • @tech-soft
      @tech-soft  3 місяці тому

      Thanks for comments, please visit spring security playlist or click on below link JWT Authentication & Authorization, login & logout with Spring boot | Spring Security full demo #3
      ua-cam.com/video/5EDUnkG6drk/v-deo.html

  • @yorrohitofficial
    @yorrohitofficial 5 місяців тому +1

    Ek project kijiye na using spring boot hibernate MySQL in complete one video and microservices

    • @tech-soft
      @tech-soft  5 місяців тому +1

      Thanks for your reply, I will create a microserice tutorial soon

  • @barsharani3237
    @barsharani3237 4 місяці тому

    Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.

    • @tech-soft
      @tech-soft  3 місяці тому

      Thank you, you are correct

  • @swapniltole8384
    @swapniltole8384 4 місяці тому +1

    I tried to implement JWT Authentication from last 5 day in my current clients project, but unfortunately I got errors because of version related issues and I never seen video on entire UA-cam like this.
    Finally I got what I want, Thanks u sir for this incredible video ❤❤❤❤❤❤❤❤
    Thank you very much again 💕

    • @tech-soft
      @tech-soft  4 місяці тому

      Thanks, I will try to make things easy

  • @simonnilsson9943
    @simonnilsson9943 4 місяці тому

    I could add user but not login. Got a 403. I downloaded the project from github and just added my own database

    • @tech-soft
      @tech-soft  4 місяці тому +1

      First you need to add user using signup api then you can login, make sure login api should not have any preauthorization annotation

    • @tech-soft
      @tech-soft  4 місяці тому +1

      Also you can try to comment all authentication annotations in controller class and check all api is working properly or not, if working then you can un comments authentication related annotation and login api should not contain any annotation related to authentication

    • @maheshphatangare3366
      @maheshphatangare3366 3 місяці тому

      @@tech-soft run but token is not generated

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi Місяць тому

    maine class hi liya hai User to usrer ko user userDetalis se kaise impliments kar sakte hai

    • @tech-soft
      @tech-soft  29 днів тому

      UserDetail se implement karna hoga kyun ki ye spring ka class hota hai, aap pana custom class ka name kuchh aur v rakh sakte hai, as per my understanding

  • @kietkun2002
    @kietkun2002 5 місяців тому +1

    i tried with mssqlserver and it not work

    • @tech-soft
      @tech-soft  5 місяців тому

      You may need to add correct dilect for mssql and correct db url in application.properties

  • @ayushjaiswal4449
    @ayushjaiswal4449 6 місяців тому +1

    Can we revoke the token generated this way

    • @tech-soft
      @tech-soft  6 місяців тому

      Yes we can do, first need to implement logout api and in logout we can store that token into a blacklist hashSet And at in tokenvalidation we can check it should not present in blackListSet

  • @roshanraj607
    @roshanraj607 6 місяців тому +1

    Bro signatureAlgoritm is deprecated

    • @tech-soft
      @tech-soft  6 місяців тому

      Can you please check spring boot and spring security versions

    • @roshanraj607
      @roshanraj607 6 місяців тому

      @@tech-soft what are the alternatives for signatureAlgoritm

  • @ankurdhaka01
    @ankurdhaka01 5 місяців тому

    The method signWith(SignatureAlgorithm, byte[]) in the type JwtBuilder is not applicable for the arguments (RenderingHints.Key, SignatureAlgorithm)
    i am getting this error

    • @tech-soft
      @tech-soft  5 місяців тому

      You can check your spring boot version , Spring security version and jwt version

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi Місяць тому

    Empty encoded password

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi Місяць тому

    reply kyu nhi karte ho

  • @PassagetoParadise0
    @PassagetoParadise0 6 місяців тому

    I'm getting 403 while using getuser Api.