First look at Blazor Authentication and Authorization in .NET 8

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 8

  • @LeonardoRochaPerito
    @LeonardoRochaPerito 11 месяцев назад +1

    Greetings from Brazil!

  • @a2011q
    @a2011q Год назад +1

    thanks a lot for the video @ hi from tashkent :)

  • @brianhoskins1979
    @brianhoskins1979 8 месяцев назад

    I had heard that the problem with doing authentication (and authorization) client side was that an attacker could fiddle with that on the client and gain access where they shouldn't etc. And since I heard that statement I have simply defaulted to the "it must be Blazor server" decision for any application that requires such functionality. Am I down the wrong path?

    • @TheDevTalkShow
      @TheDevTalkShow  8 месяцев назад

      You are thinking about this the right way. As you said, any pure SPA involves shipping code to the browser and therefore just expect that someone will decompile or unminify it and read it. Therefore, you have to approach your application a different way.
      All authentication and authorization ultimately has to happen at a server. So even if you used the templates to determine who is logged in, and what their authorization is, you will want to back your application with APIs that ALSO must carefully authenticate the caller. The show we did today was our first look at Client authentication (Interactive WebAssembly or InteractiveAuto) and how the templates differ:
      ruclips.net/video/8GGxSJ8Bv_o/видео.html
      As we continue the series, the intent is to tackle these problems and show practical implementation for Blazor, but also APIs or services you'd connect to and how they ultimately must defend themselves so they do not either give out or accept data from a device it can not trust.
      This does NOT answer the question of whether you ultimately want to support the "client" render modes such as InteractiveWebAssembly or InteractiveAuto. If you don't need them, you aren't required to support them. But there are some applications that might work well in a disconnected mode, gather data while disconnected, and then when reconnected verify the user and accept the data collected while "offline".
      Thank you for watching.

  • @PredatorianStyl
    @PredatorianStyl Год назад +3

    Didn't know David Gilmour was into Software Development

  • @BarriDuty
    @BarriDuty Год назад +1

    thank you, really informative, i love the new blazor stuff in .net 8

    • @TheDevTalkShow
      @TheDevTalkShow  Год назад +1

      Thanks for the comment! We are having fun with all the new blazor capabilities too!