Adding JWT Authentication & Authorization in ASP.NET Core

Поділитися
Вставка
  • Опубліковано 19 кві 2023
  • Check out my courses: dometrain.com
    Become a Patreon and get source code access: / nickchapsas
    Hello, everybody, I'm Nick, and in this video, I will show you how to get started with JWT Authentication and Authorization in your ASP.NET Core applications and APIs.
    Video explaining JWT: • What is a JWT (JSON We...
    Workshops: bit.ly/nickworkshops
    Don't forget to comment, like and subscribe :)
    Social Media:
    Follow me on GitHub: bit.ly/ChapsasGitHub
    Follow me on Twitter: bit.ly/ChapsasTwitter
    Connect on LinkedIn: bit.ly/ChapsasLinkedIn
    Keep coding merch: keepcoding.shop
    #csharp #dotnet

КОМЕНТАРІ • 172

  • @nickchapsas
    @nickchapsas  Рік тому +127

    Just a heads up. Roles and advanced feature are intentionally left out of this video because I will do an advanced and best practices follow up video. Keep coding!

  • @mrt7948
    @mrt7948  +11

    this is very confusing

  • @matasbernotas5036
    @matasbernotas5036 Рік тому +121

    I think more topics about authentication and authorization in general would be great! Its necessary for nearly every project these days but there is so little good content online or and written by unknown people that you are not sure if you can trust!

  • @psyk0l0ge

    am I the only one who has a hard time finding the correct repository of this tutorial?

  • @eraysona

    i don't understand what you talk about.

  • @SertuncSELEN

    I wasted half a day because I added the wrong library. Be careful when adding libraries!!!

  • @jameshancock
    @jameshancock Рік тому +3

    Please for the love of god, don't use claims per user for your security. Add users to roles that you pass as claims and secure by roles on the Authorize attribute. You'll create an absolute mess for yourself if you do it this way.

  • @emasmudalima

    Speak too fast

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

    So you have to click debug to reload the code everytine 😅😅😅😅

  • @randy4443

    I can't install this package

  • @axelbreekweg
    @axelbreekweg Рік тому +27

    There are plenty of videos out on this topic, yet your teaching style I find best.

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

    Glad to see you mix it up a bit by going back to some of the basic stuff nearly every application needs. I've used JWT authentication in a few apps, but I learned a few new tricks from this, thanks Nick!

  • @DeophobicMind

    can't believe I've been your subscriber all this time until I needed this video. By far the most concise explanation I've seen about jwt implementation.

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

    Great timing my dude! Want to implement JWT in my app atm.

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

    Thank u for sharing this topic looking forward to more advanced options using this

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

    Perfectly turned up just when I needed it.

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

    If it had been made 4 years ago, it would have saved me a lot of headaches. Now it was very refreshing and enjoyable.

  • @skylolo1101
    @skylolo1101 Рік тому +20

    Great content as usual Nick! Keep it up and yes, please show us how you would do refresh token (I already implemented it but I find your implementations always cleaner and well thought of). Thanks! PS: maybe you can show how to add multiple Identity providers (facebook + google + custom) all at the same time.

  • @11r3start11
    @11r3start11 Рік тому

    the refreshing part was always tricky for me, so Im interested in dedicated video A LOT :)

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

    Thank you Nick, great video as always!