ASP.NET Core Cookie Authentication (.NET 7 Minimal Apis C#)

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

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

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

    Really appreciate these in depth explanations, keep doing great Anton!

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

      Cheers

    • @maksadnahibhoolna-wc2ef
      @maksadnahibhoolna-wc2ef ปีที่แล้ว

      @@RawCoding Hey I m a bit confused between the old playlist and this new one ?
      Here is my interpretration :
      - Old playlist - it is for securing dotnet MVC application, also it uses dotnet core Identity Framework
      - New playlist - it is for minimal APIs, and this one doesn't use dotnet core Identity Framework
      Some doubts :
      - Can we use dotnet core Identity Framework in this minimal API setup similar to MVC setup ?
      - (follow up ques to prev one) If yes, then why didn't you implement identity in this playlist ?

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

    The way you talk and explain things are really cool, easy to understand. Perfect!

  • @whitebudgie
    @whitebudgie 6 หลายเดือนก่อน +2

    that content is a treasure

  • @ashleygahl3638
    @ashleygahl3638 3 หลายเดือนก่อน

    This is gold, compared to lots of other videos.. Should have more likes

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

    This is great! Thank you. VS has also recently been able to decompile - we finally got it :)

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

    Thanks for taking the time to explain this in detail. Loved it!

  • @tedchirvasiu
    @tedchirvasiu 5 หลายเดือนก่อน

    Your videos are gold.

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

    Great video Anton👍

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

    Flabbergasting explanation, thank you.

    • @mumk
      @mumk 11 หลายเดือนก่อน

      holy shit

    • @tedchirvasiu
      @tedchirvasiu 5 หลายเดือนก่อน

      god damn

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

    an idea for your next video in this series - a cross site scripting attack the full demo story (based on the story you mention at 20:00). It will be a hit!

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

      Nice suggestion! I’ll make it at some point

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

    Thanks for the explanation, SERVICIEZZZZZZ

  • @TroloveCro
    @TroloveCro 4 หลายเดือนก่อน

    You know what brother??
    .
    .
    .
    .
    .
    .
    .
    .
    Thanks, I had a lot of issues understanding this concept! ❤

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

    what a background ^

  • @QVMaster
    @QVMaster 10 หลายเดือนก่อน

    Dear Anton, I hope you are doing well. I love the way you teach. I chose your videos out of all the huge learning I had to do.
    I have a question (and several more as I go along): Why are my cookies being reissued without setting a SlidingExpiration to true? I'm using Edge Version 120.0.2210.121 and vscode with .Net SDK 8. It seems that the SlidingExpiration default value is true.

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

    27:00 default schema

  • @ΝίκοςΓλαβίνας
    @ΝίκοςΓλαβίνας ปีที่แล้ว

    Gold Value here !

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

    @21:26 you wanted to say "never set that flag to false" ?

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

    in 46:18 you attach external dll in your debugging How we do that in visual studio ?
    as you know in some cases I need to debug in other's dlls or packges to see behaivour

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

      I think visual studio is limited in this regard

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

    Hey anotn, i'm wondring is the playlist ordered correctly?
    cuz i'm seeing some 5 months ago video followed by 8 months followed by 1 month.. and so on

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

      Take the order with a grain of salt. There is no preset to authentication real you can finish this at cookies or implement impersonation with cookie or token auth. Try to find topics that you want to learn about rather than follow the order.

  • @MinhNguyen-zx8me
    @MinhNguyen-zx8me 4 หลายเดือนก่อน

    How do you attach debugger to a specific process? Can you show us how to do that in Rider with Resharper ? Thank you

    • @RawCoding
      @RawCoding  4 หลายเดือนก่อน

      Press shift shift for all commands and type attach to process

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

    Hey Anton, it owuld be good to increase the size of the code it's hard to read on a mobile

  • @lasindunuwanga5292
    @lasindunuwanga5292 8 หลายเดือนก่อน

    I have to say you are way better in these videos. I think the reason is you are more calm. In previous videos you say lot of stuff continuously and it is hard for audience to catch what you are saying. And it is much better when you don't fouce the audience to follow best practices that you think are the best.

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

    (21:30) "...never really want to set that flag to true..."
    Don't you mean "never want to to set it to false"? Surely you meant to say that we *do* want to make cookies http only unless we have a good reason otherwise, no?

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

    great stuff as always, bell is clicked! :P do you know of a scenario where cookie is not cleared even though server sends the header with "cookie=;"? Our playwright tests have some troubles with that

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

      nope, unless there are multiple sessions running in multiple tabs.

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

      @@RawCoding do multiple workers count as multiple tabs? :D

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

      @@Qrzychu92 don't know don't use selenium

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

      If you have a test that sign out on one worker and then next test depends on being signed out runs on a different one maybe you’re in trouble

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

    these cookies are stored on the server right? so if the client makes a request to a different server they would have to log in again?

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

      Cookie is not stored on the server

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

      @@RawCoding oh, cool! I saw a lot of people say the drawback of session storage is that you have to make sure your user hits the same server if your servers scale horizontally or you have to store the cookie data in a database.
      Thank you for the response btw! You are an amazing teacher and very knowledgeable,

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

      That is true if you have session storage, but you don’t have it by default.

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

      @@RawCoding oh i see i was mixing them up then

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

    Hey, just wondering are you Portuguese?

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

      nah, I'm from Latvia

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

      @@RawCoding Ooooh. Your accent sounded close to the usual Portuguese accent so I wondered about that. This is not to say you speak bad English, far from it! Keep up the good work 💪

    • @QVMaster
      @QVMaster 10 หลายเดือนก่อน

      @@RawCoding Your accent is amazing dear Anton

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

    Amazing…
    Thanks for this video sir.
    Can you please make Video on the best way to use HttpClient and get the Cookie from HttpClient after Login? Please 😊

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

      What are you trying to do? Otherwise look in the Set-Cookie header

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

    Anton, really? Or did I misheard?

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

      Yep my name is Anton )

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

    Second!