JWT Authentication with .NET 9 🚀 Full Course with Roles, JSON Web Tokens & Refresh Tokens

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 51

  • @hamadsherazi6896
    @hamadsherazi6896 4 години тому +1

    needed it immediately and exactly ran into the video at very appropriate time. thx patrick

    • @hamadsherazi6896
      @hamadsherazi6896 2 години тому

      One question, can we use this in production. The same strategy? Or is there something more to it?

  • @Ruler_034
    @Ruler_034 9 днів тому +4

    A nice video. I´m a mechanical engineeing and i started learning to program as a hobby. Your videos have always helped me a lot to understand and learn.

    • @PatrickGod
      @PatrickGod  9 днів тому +1

      Cool, thank you so much for your feedback!

  • @ionutvlad
    @ionutvlad 11 днів тому +3

    Very nice video! I liked the step by step building, from simple to more complex.

  • @johnmaguire2185
    @johnmaguire2185 13 днів тому +2

    Very impressive demonstration. Thanks Patrick.

  • @cenkozturk5396
    @cenkozturk5396 20 годин тому +1

    Thanks you my senior...

  • @Chefrachida
    @Chefrachida 16 днів тому +11

    Great video. I hope you will consider making a video about Clean Architecture with Blazor in .NET 9 with us. Thank you for your work.

    • @PatrickGod
      @PatrickGod  16 днів тому +2

      Noted😊

    • @amirameri1354
      @amirameri1354 14 днів тому

      Yes . I needed to this tutorial so .Dear Patrick , We are waiting for it 🙏

    • @kevinespina3289
      @kevinespina3289 2 дні тому

      @@PatrickGodyes please

  • @innocentalfredo-youngboss
    @innocentalfredo-youngboss 11 днів тому +1

    Thank you for well organized and clear tutorial ,God bless u

  • @ashfaqmna6464
    @ashfaqmna6464 15 днів тому +2

    It would be really great ,if u can make a video on Microsoft Identity with JWT in Web API.... this video is a good starting point to understand how JWT works ..and another great video!!!!

  • @Steven-1183
    @Steven-1183 16 днів тому +1

    I’m a recent subscriber, and I really appreciate your videos!

  • @blikardo
    @blikardo 15 днів тому

    Great video, really enjoyed the walk through. I'll try to implement this flow on my next project.

  • @aabdoulraqeeb2468
    @aabdoulraqeeb2468 16 днів тому +1

    Great Video man. I really like how you explain this stuffs man.

  • @dmsnm
    @dmsnm 13 днів тому

    Thank you for this very clear and concise video. Using Microsoft Identity for the user would be the only improvement I can point out.

  • @emilie1977
    @emilie1977 16 днів тому

    Thank you very much! Ciao from Italy

  • @omarabdelrahim8949
    @omarabdelrahim8949 Годину тому

    Thank you

  • @TechhMann
    @TechhMann 15 днів тому

    Awesome video love this! Thank you

  • @saeedkazeminia3637
    @saeedkazeminia3637 16 днів тому +1

    Thanks a lot patrick

  • @mlsandreas
    @mlsandreas 16 днів тому +1

    Thank you!

  • @ProtikPC_pro_indigo
    @ProtikPC_pro_indigo 16 днів тому +6

    Dear Patrick,
    As much as I like these bite-sized capsules where you emphasize and teach on a specific aspect/functionality or concept, I'd like you to start a series, where you build a real world COMPLETE application starting from scratch(preferably with Angular and .NetCore) bit by bit. For us, your valued subscribers.
    You probably have and sell course of platforms Udemy Coursera etc. but
    I request you, give us regular subscribers something to cherish.
    Hope you understand where I'm coming from.

    • @heathens2867
      @heathens2867 16 днів тому

      Why don't you take advantage of LLM's? You're in 2025, it's hightime that you should take help of LLMs as they're highly capable and highly effective to teach u in very easy way.
      Get the jest of the project from these videos and apply it later with the help of LLMs

    • @ProtikPC_pro_indigo
      @ProtikPC_pro_indigo 15 днів тому

      @heathens2867 LLM ?

    • @rootbeer698
      @rootbeer698 15 днів тому

      @@ProtikPC_pro_indigo Large Language Model like ChatGPT.

    • @SanityIT
      @SanityIT 15 днів тому

      @@ProtikPC_pro_indigo Fancy developer expression for AI.

    • @heathens2867
      @heathens2867 14 днів тому +2

      @@SanityIT AI is an umbrella term and not specific to just LLMs. ANYWAY, I get the jest :p

  • @LuisFernandoForeroGuzman
    @LuisFernandoForeroGuzman 12 днів тому +1

    Great video and explanation! I noticed you didn’t mention the Logout endpoint. Given that JWTs are stateless, what’s your opinion on implementing a logout endpoint using token blacklisting?

  • @Nova5k
    @Nova5k 5 днів тому

    I have a question about JWT. What happens if the refresh token and the access token are exposed to an attacker. In that case, does the hacker have the possibility to steal the user account unless the user login again right?

  • @EvgeniyYatsenko
    @EvgeniyYatsenko 15 днів тому

    very helpful video!

  • @wrathrowe
    @wrathrowe 4 дні тому

    Good morning, is there a compliment video to this one that shows how to use a Blazor WASM app to login?

  • @ДмитрийКондратенко-б5ь

    Can you please make video about how to implement or adjust this authentication/authorisation in case if we have MVC application, not just Web API

  • @sohailshamsramay
    @sohailshamsramay 15 днів тому +4

    I wonder, isn't it better to use Microsoft Identity as it does all heavy lifting for us and provide endpoints like /login, /register etc out of the box. Your thoughts @Patrick

    • @thiernodiallo575
      @thiernodiallo575 14 днів тому +1

      I wanted to ask the same question.

    • @ProtikPC_pro_indigo
      @ProtikPC_pro_indigo 14 днів тому

      @@sohailshamsramay you mean like Azure AD B2C Auth Services ?

    • @sohailshamsramay
      @sohailshamsramay 13 днів тому

      @@ProtikPC_pro_indigoIts neither Azure AD nor B2C Auth Servies. I am talking about Microsoft.AspNetCore.Identity.EntityFrameworkCore package. If we use this package we only need to configure it in program.cs file as below;
      builder.Services.AddIdentityApiEndpoints()
      .AddEntityFrameworkStores();
      It does all the heavy lifting for us and provide endpoints linke login, register, forgotPassword, confirmEmail etc. I am new to AspNet world and really like it as I do not have to do more then just configuring it.

    • @sohailshamsramay
      @sohailshamsramay 8 днів тому

      @@ProtikPC_pro_indigo No I mean installing following nuget package Microsoft.AspNetCore.Identity.EntityFrameworkCore and adding below configrations to program.cs file gives all the endpoints like login, register, forgotPassword etc out off the box.
      builder.Services.AddIdentityApiEndpoints()
      .AddEntityFrameworkStores();

  • @pascalsi1
    @pascalsi1 16 днів тому +2

    This is only the server part (WebApi) ?! How do I use that to login to my Blazor WASM standalone app for example, And once logged in make additional REST calls to some secured endpoints of the Web API by adding those token in the HTTP request header my Blazor WASM app will send to the Web API ? Some endpoints will be secured other not, so if no user is logged in, no token will be in the HTTP header.

    • @pascalsi1
      @pascalsi1 16 днів тому

      Can i use those tokens in my Blazor WASM standalone app to allow the logged in user to access or not some pages based on its roles ?

  • @astheras
    @astheras 14 днів тому

    Do I understand correctly that you always connect to the database with only one user and do not use the auth creds to connect to the db?

  • @junyuzhu2459
    @junyuzhu2459 16 днів тому +1

    amazing

  • @MJ-yx4ut
    @MJ-yx4ut 11 днів тому

    Thank you for a great video. Would i be possible to create a video where you extend this with multitenancy?

  • @Leonidn1972
    @Leonidn1972 15 днів тому

    Thanks a lot.The best chanel.
    Please,make real project with angular and .net core microservice.

  • @tulnaf
    @tulnaf 15 днів тому

    Thank you again for the well explain tutorial.
    Can you make a video of how to use this Authentication with Blazor Server Web Application?

  • @whisperman4902
    @whisperman4902 14 днів тому

    Hello, I am using Dotnet Identity but I think it does not have JWT feature, so I only add tables and managers. I continue with JWT myself. I started to question the benefits of this, would I be more comfortable with my own User like yours? What do you think?

  • @yashkushwaha7951
    @yashkushwaha7951 16 днів тому +1

  • @Bakry5
    @Bakry5 16 днів тому +1

    I click like button before I watch this course 🫶🩷🩷

  • @catalinmarianmursa7892
    @catalinmarianmursa7892 4 дні тому

    Thank you !