Authorization is easy now (Microservices, Next.js, Cerbos)

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • 👉 Cerbos (open source!) & Cerbos Hub: bit.ly/49tC8vD (paid sponsorship)
    Disclaimer: this is a sponsored video (paid). It's your responsibility to evaluate safety, accuracy and other relevant parts of the reviewed product.
    👉 Full code: github.com/ByteGrad/cerbos-ne...
    👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    👉 NEW React & Next.js Course: bytegrad.com/courses/professi...
    👉 Professional JavaScript Course: bytegrad.com/courses/professi...
    👉 Professional CSS Course: bytegrad.com/courses/professi...
    👉 Web development roadmap 2024 & 2025: email.bytegrad.com
    👉 Email newsletter (BIG update soon): email.bytegrad.com
    👉 Discord: all my courses have a private Discord where I actively participate
    ⏱️ Timestamps:
    00:00 The problem with authorization
    03:18 Authorization solution
    06:29 Modern auth architecture
    08:03 Policy file
    10:04 Policy decision point (microservice)
    14:15 Connect app to Cerbos
    15:58 What happens when biz requirements change?
    17:28 Frontend (wasm)
    20:34 Custom hook (useCerbos)
    21:05 Overview
    #webdevelopment #programming #coding #reactjs #nextjs

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

  • @coolemur976
    @coolemur976 2 месяца назад +32

    Isn't non-third party middleware to handle authorization better? Talking about ownership of code here...
    Now you just become dependant on some kind of lib and it's tools and later on you will have a subscribtion payment to upgrade their version to use "premium features"...

  • @BarisPalabiyik
    @BarisPalabiyik 2 месяца назад +15

    tRPC and its middlewares to chain the logic before the procedures works flawlessly imo and you own it.

  • @danielvalenzuela7
    @danielvalenzuela7 2 месяца назад +4

    why would you want to add a commit step, grant an external company access to my code, and run a parallel server for just a few basic checks? I agree we want to centralize this, but it seems to me to be more trouble than help.

  • @irfantayyib
    @irfantayyib 2 месяца назад +2

    Commenting just for encouraging you! Because I love your videos. Do not stop please :D

  • @markjones6894
    @markjones6894 2 месяца назад +3

    Would it be possible to make a video exploring appwrite ? How to setup authentication, make role based authorization etc… ? Thank you!

  • @geniusstudent8804
    @geniusstudent8804 Месяц назад +1

    can you make a cerbos/http tutorial to handle permissions in the browser

  • @supakornnetsuwan4758
    @supakornnetsuwan4758 2 месяца назад +1

    Which is the best choice between "Cerbos" and "CASL", I saw that Nest.js has suggested the CASL as a recommended choice. 🤔

  • @amirhosseinnouri6821
    @amirhosseinnouri6821 2 месяца назад +2

    This might be an overkill for many use cases. Instead some repetitive logic can be put into some utility functions (single source of truth). And I think we lose the intelicence inside the YML files. But it's good to know that we have this one in our tool belt. Keep up the good work.

  • @user-bn5rm2ok7j
    @user-bn5rm2ok7j 2 месяца назад +1

    You are the best teacher for me. God bless you 🙏🏻

  • @Mirislomovmirjalol
    @Mirislomovmirjalol 2 месяца назад +2

    Spaghetti code works great yet

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt 2 месяца назад +1

    Wow thanks ❤

  • @valentinsacco
    @valentinsacco 2 месяца назад +1

    Just today i found it 🥴

  • @okanbayulgen
    @okanbayulgen 2 месяца назад

    Just use Zod schemas what the f is this concept

    • @blazi_0
      @blazi_0 2 месяца назад +1

      Isn't zod schema validation thing? How can I use it for rule based authorization system?

    • @okanbayulgen
      @okanbayulgen 2 месяца назад

      If I understand correctly, using this service involves retrieving data from your database and creating a YAML file, indicating that some form of validation and functionality has already been implemented in your application. Could you explain why Zod validation cannot do that mechanism

    • @shivangrathore
      @shivangrathore 2 месяца назад

      ​@@blazi_0make your own

    • @shivangrathore
      @shivangrathore 2 месяца назад

      Imagine adding a middleware to every single route