JWT authorization | authentication in .net core 6

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • Learn free coding skills
    In this video I have demonstrated the implementation of JWT authentication in asp.net core 6.0 with example.
    NET 6.0 - JWT Authentication Tutorial with Example API |
    JWT Token Authentication And Authorizations In .Net Core 6.0
    Related video to implement swagger in asp.net 6.0
    • Swagger Implementation...
    Related link to implement the Basic Authentication in Swagger with example
    • Basic Authentication i...
    Setup application on okta
    • Part-1 How to setup ok...
    Implement okta client Credentials Flow in swagger asp.net core 6.0
    • Part - 2 Okta Code Imp...

КОМЕНТАРІ • 39

  • @narasimha._sai
    @narasimha._sai 2 роки тому +2

    Good video. God sake i m being searching for asp core 6 u r a saviour 🙏🙏🙏🙏

    • @aonecode
      @aonecode  2 роки тому +1

      Thanks friend if this video helps then don't forget to give your support. Like and subscribe ☺️

  • @ntuthukodlamini6804
    @ntuthukodlamini6804 Рік тому +1

    Thank you SO much

  • @htoomyatlin8920
    @htoomyatlin8920 2 місяці тому +1

    awesome thanks. :D

  • @BaghdadSon78
    @BaghdadSon78 Рік тому +1

    Hi, nice video!
    At 10:21
    if (user != null) I think should be if (userData != null)
    You already made a check on the higher level if statement with if (user != null)

    • @aonecode
      @aonecode  Рік тому +1

      Thanks.

    • @BaghdadSon78
      @BaghdadSon78 Рік тому

      @@aonecode you welcome, keep on the good work and thanks to you too!

  • @mrt7948
    @mrt7948 2 роки тому +1

    very good. thanks for the demo on swagger with token. next client part please.

    • @aonecode
      @aonecode  2 роки тому

      Thanks for watching ☺️. What client part?

    • @narasimha._sai
      @narasimha._sai 2 роки тому

      @@aonecode extend this , with login and signup page using angular

  • @federicofernandez683
    @federicofernandez683 Рік тому +2

    Genio!!

  • @sanfaby
    @sanfaby 2 роки тому +2

    Hermoso!

  • @BowBow-hg9nv
    @BowBow-hg9nv Рік тому +1

    bro how comes when i call this generic method (10:24)
    var jwt = _configuration.GetSection("Jwt").Get();
    the Jwt inside unable to be found and i had already added JWT in app settings, it just unable to retrieve

    • @aonecode
      @aonecode  Рік тому

      Thank @Bow for watching this. Actually If you have already created the object for JWT in your app settings then the name must be matched with the new class name you created. It is case-sensitive so you won't retrieve the object from appsettings if you did any verbiage or case mistakes.

  • @vishalkvideos3119
    @vishalkvideos3119 2 роки тому

    Thanks bro.

  • @YuDorabb
    @YuDorabb 2 роки тому +2

    no sound ?

  • @madandhmadandh5254
    @madandhmadandh5254 2 роки тому

    Post is getting error bro in jwttockencontroler y i don't know

    • @aonecode
      @aonecode  2 роки тому

      Thanks for watching bro. Might be you have missed something. Follow the steps you will not get error.

    • @madandhmadandh5254
      @madandhmadandh5254 2 роки тому

      @@aonecode broi am getting exception in AddAuthentication () bro

    • @aonecode
      @aonecode  2 роки тому

      What is the error can you please post the error or exception here

    • @madandhmadandh5254
      @madandhmadandh5254 2 роки тому

      @@aonecode An unhandled exception occurred while processing the request.
      Expectation is---
      Invalid OperationExeption:Cannot modify Service collection after application is built.

    • @aonecode
      @aonecode  2 роки тому

      BRO please post your code as well only the program file where you have injected the dependency.

  • @paulsean5367
    @paulsean5367 Рік тому

    hello can we have the
    source code ?

    • @aonecode
      @aonecode  Рік тому

      Hello, no bro I don't have code in handy. Sorry, you can watch the full video.

  • @sophiaharmani.a3773
    @sophiaharmani.a3773 Рік тому

    I am getting CreateBuilder error

    • @aonecode
      @aonecode  Рік тому

      May be you can see the full video and it will work for you

    • @sophiaharmani.a3773
      @sophiaharmani.a3773 Рік тому

      @@aonecode twice i tried but I'm getting same issues

    • @sophiaharmani.a3773
      @sophiaharmani.a3773 Рік тому

      I am trying at visual studio 2019
      Does it impact on that?

    • @aonecode
      @aonecode  Рік тому

      Yes, vs 2019 doesn't support asp.net 6.0. You need to upgrade your IDE to vs 2022.

  • @jayakumar2927
    @jayakumar2927 2 роки тому

    share gthub link

    • @aonecode
      @aonecode  2 роки тому

      Thanks for watching. I randomly created this and not uploaded the code to github.

    • @jayakumar2927
      @jayakumar2927 7 місяців тому

      @@aonecode waiting for github url then only useful to subscribers