Mastering .NET 8 Blazor Cookie Authentication & Authorization with Individual Accounts! 💻🚀

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • Are you looking for Coding Mentoring? If you're seeking personalized guidance and mentoring for your coding journey, then get in touch!. I offer expert guidance and support to help you level up your programming skills. Contact me on business.netcodehub@gmail.com to book a session and accelerate your coding career.
    /*Get Source Code From GitHub*/
    github.com/Net...
    Here's a follow-up section to encourage engagement and support for Netcode-Hub:
    🌟 Get in touch with Netcode-Hub! 📫
    🔹 GitHub: (github.com/Net...) 🌐
    🔹 Twitter: ( / netcodehub ) 🐦
    🔹 Facebook: ( / netcodehub ) 📘
    🔹 LinkedIn: ( / netcode-hub-90b188258 ) 🔗
    🔹 Email: [business.netcodehub@gmail.com]📧
    ☕️ If you've found value in Netcode-Hub's work, consider supporting the channel with a coffee!
    🔹Buy Me a Coffee: (www.buymeacoff...) ☕️

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

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

    It is an excellent video. It allowed me to understand several important concepts. Thank you.

    • @Netcode-Hub
      @Netcode-Hub  ปีที่แล้ว +1

      Glad it was helpful!

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

    MASTER 🙏🙏. You make it so simple to understand, that's so high, thanks 👍🏽

    • @Netcode-Hub
      @Netcode-Hub  ปีที่แล้ว

      Thanks 😊

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

      I have a question 😁, I would like to know if this authentication method is usable for the whole project (client and server side)? i.e. no need for an API endpoint for authentication(client side)like implementing another API endpoint for the client too? Thanks in advance 🙏

    • @Netcode-Hub
      @Netcode-Hub  ปีที่แล้ว +1

      Yes, this works for the server and client.

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

      @@Netcode-Hub thanks 🙏🙏🙏🙏 so much

  • @lemonade2345-j4e
    @lemonade2345-j4e 9 หลายเดือนก่อน

    Thanks for such descriptive video and complete functional code. I cloned the solution from the github repo, however on mac I do not have sql server available easily. So I modified the code to cater for sqlite database instead, and it worked like a charm!

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

    Great content

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

    Great video man. Can you make a video about interceptors? A class where all the request are going through and set token as a header for every request. Can i store acces_token in claims to use for my request?

    • @Netcode-Hub
      @Netcode-Hub  ปีที่แล้ว +1

      Check the playlist
      Have a covered video made

  • @tofansahra-kb7rv
    @tofansahra-kb7rv 11 หลายเดือนก่อน +1

    Thank you.

    • @Netcode-Hub
      @Netcode-Hub  11 หลายเดือนก่อน

      Welcome 🤗

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

    Great video. 1 Question. Where/how would I add custom claims to list?

    • @Netcode-Hub
      @Netcode-Hub  10 หลายเดือนก่อน

      When preparing the claims to persitAsJson in server project, this where you add all your claims and retrieve them in the client .

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

    nice

    • @Netcode-Hub
      @Netcode-Hub  11 หลายเดือนก่อน

      Thanks 😊

  • @dp-bhatt
    @dp-bhatt 7 หลายเดือนก่อน

    Thank you for the video. I have individual account cookies for the render mode auto exactly as shown in this video. There are also a few controllers on the server project that are being consumed by the client HttpClient. I tried to put [Authorize (Roles ="Administrators")] on the API controllers but that didn't work. Do I need to configure different authentication schemes for the API controllers and razor pages? Are there any resources you have created?

    • @Netcode-Hub
      @Netcode-Hub  7 หลายเดือนก่อน

      But do you have that role in place?
      Authentication is set once and can be used anywhere .
      Make sure your authentication persists in component state when going to the client .

  • @philipquarles4679
    @philipquarles4679 7 หลายเดือนก่อน

    I need this to work on Azure. Have you tried deploying this to Azure?

    • @Netcode-Hub
      @Netcode-Hub  7 หลายเดือนก่อน

      Not yet

    • @philipquarles4679
      @philipquarles4679 7 หลายเดือนก่อน

      Thank you for your prompt response. I will check back from time to time to see if that changes. All the best. Phil

    • @Netcode-Hub
      @Netcode-Hub  7 หลายเดือนก่อน

      @philipquarles4679 sure 😃

  • @sebastian.cardozo
    @sebastian.cardozo 10 หลายเดือนก่อน

    Thank you very much for your videos, I had a marathon of them but I am facing a problem :( .I need MainLayout to be interactive, it works correctly until I use the "Account" pages, it is because they need a HttpContext and lose interactivity (This is explained in AccountLayout). How can I keep the interactivity of MainLayout? Can you help me please?

    • @Netcode-Hub
      @Netcode-Hub  9 หลายเดือนก่อน

      Thanks 🙏
      Why do you wanna make the layout interactive

    • @sebastian.cardozo
      @sebastian.cardozo 9 หลายเดือนก่อน

      @@Netcode-Hub because I want to use NavGroup in my NavMenu and they do not expand. I also want to be able to use the button to change the theme located in the AppBaar, also a button to expand and hide the NavMenu.Thanks to you, sorry for my English.

    • @sebastian.cardozo
      @sebastian.cardozo 9 หลายเดือนก่อน

      @@Netcode-Hub because in the appBar I want to keep working the button to change the theme, also the button that expands the NavMenu, also the NavMenu groups (NavGroup) are not expanded in the "Account" pages. Help me pls.

    • @sebastian.cardozo
      @sebastian.cardozo 9 หลายเดือนก่อน

      @@Netcode-Hub because in the appBar I want to keep working the button to change the theme, also the button that expands the NavMenu, also the NavMenu groups (NavGroup) are not expanded in the "Account" pages. Help me pls. :(

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

    can you create for razor pages instead of blazor

    • @Netcode-Hub
      @Netcode-Hub  ปีที่แล้ว

      With .NET 8. Blazor with individual account ?

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

    For some reason, which I can not figure out, when I use the Blazor wep app template and choosing Interactive render mode Auto(Server and WebAssembly) the template don't create two projects, it does not create the client project. did they change the template or something ?

    • @Netcode-Hub
      @Netcode-Hub  11 หลายเดือนก่อน +1

      Change project folder location , shorten the project name… it might be too long , it might work

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

      @@Netcode-Hub
      Yeah I figures out my project name was to long. I never seen that before.

    • @Netcode-Hub
      @Netcode-Hub  10 หลายเดือนก่อน

      Keep it in mind next time