Policy based Authorization (simple scenario) | ASP.NET Core Identity & Security Series | Ep 9

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 21

  • @FrankLiuSoftware
    @FrankLiuSoftware  3 ปีที่แล้ว

    To get the complete course: frankliucs.com/identity

  • @nathan655
    @nathan655 2 ปีที่แล้ว +5

    Man, your way of teaching is so simple. First you show me what the problem we are going to solve rather than simply doing it. Thanks a ton

  • @swapnil39914072
    @swapnil39914072 ปีที่แล้ว +2

    I liked the playlist you have created for "ASP.NET Core Security" it helps a lot !

  • @coffee22able
    @coffee22able 3 ปีที่แล้ว +3

    Great Explanation. This series is much better than Pluralsight courses. Thank you so much!

    • @FrankLiuSoftware
      @FrankLiuSoftware  3 ปีที่แล้ว +1

      Glad that it helps you with your study and work and thanks for supporting me!

  • @jayantaghosh7678
    @jayantaghosh7678 2 ปีที่แล้ว

    Best Explanation on Authentication and Authorization

  • @ajaypanse4489
    @ajaypanse4489 ปีที่แล้ว +1

    Hi Frank,
    You have explained this in very simple way which is very easy to understand.
    Can you show this with one example using JWT Token as an authentication token instead of cookie

    • @FrankLiuSoftware
      @FrankLiuSoftware  ปีที่แล้ว

      JWT is covered in the full course, but I don't remember if it covers the exact scenario.

    • @ajaypanse4489
      @ajaypanse4489 ปีที่แล้ว

      @@FrankLiuSoftware,
      Thanks for your quick reply.
      Please share the video link

  • @Muiterz
    @Muiterz ปีที่แล้ว +1

    Excellent videos!! thanks!

  • @khanfaizan05
    @khanfaizan05 ปีที่แล้ว +1

    You are really amazing..

  • @guesswho2306
    @guesswho2306 2 ปีที่แล้ว

    very well explained both parts. kudos!

  • @musakosker
    @musakosker 2 ปีที่แล้ว

    Thanks a lot, Is there a big difference between us using Policy= instead of Roles=?

  • @ricardothomas3779
    @ricardothomas3779 3 ปีที่แล้ว +1

    Awesome tutorial in the series Frank.
    could you do an episode that uses Identity(UserManager, etc), EF Core coupled with user registration and confirmation ?

    • @FrankLiuSoftware
      @FrankLiuSoftware  3 ปีที่แล้ว +2

      These are the first part of my course on asp.net core identity and security. Those will be in the full course for sure.

    • @ricardothomas3779
      @ricardothomas3779 3 ปีที่แล้ว +1

      @@FrankLiuSoftware thank you Frank.

  • @queenofpain6483
    @queenofpain6483 3 ปีที่แล้ว +1

    Should Claim types be saved in the Authentication DB as well so that I can dynamically create the Claims depending on the user's role? Something like:
    var claims = new List
    {
    new Claim(ClaimTypes.Name, UserLogin.UserName),
    new Claim(UserLogin.ClaimType, UserLogin.ClaimValue)
    };
    where UserLogin is what's been returned by the auth db upon sucessful authentication.

    • @ugochukwuumerie6378
      @ugochukwuumerie6378 3 ปีที่แล้ว +1

      Yes of course, I guess he was only hard coding this for demo purposes. In real world applications, you'd probably assign claims dynamically from the database when a user is authenticated successfully.

  • @KunalMukherjee3701
    @KunalMukherjee3701 3 ปีที่แล้ว

    Should the policies and requirements be written in the resource server or the auth server ?

    • @FrankLiuSoftware
      @FrankLiuSoftware  3 ปีที่แล้ว +1

      Policy and requirements are for protecting resources. Hence, unless your auth server is your resource as well, they will have to be written on the resource server. Even when you use an external auth server like Identity Server , Azure or other third part solutions, you will still need to write your own policies to protect your resources.