Add RBAC to Your Nest.js API in ~ 7 minutes

Поділитися
Вставка
  • Опубліковано 7 лют 2023
  • Note: This video was originally published on October 18, 2021.
    Knowing who your authenticated user is and whether they have access to your API is one thing, but knowing their roles and/or permissions helps us maintain fine grained control over which actions they can perform for each API endpoint. Learn how to add permissions in Auth0 and access tokens so you can check them in your Nest.js API.
    Securing your Nest.js API with Auth0 by Okta - • Secure Your Nest js AP...
    Nest.js Documentation - nestjs.com
    ___________________________________________
    Learn with Auth0 by Okta
    Try Auth0 for free - a0.to/yt-signup
    The Auth0 by Okta blog - a0.to/blog
    ___________________________________________
    Follow Us on Social
    Twitter - / oktadev
    LinkedIn - / oktadev
  • Наука та технологія

КОМЕНТАРІ • 9

  • @chamal661
    @chamal661 Рік тому +7

    Can you please share the repository of these videos :) Thanks!

  • @laszlo1805
    @laszlo1805 Рік тому +1

    Thanks for uploading this!
    I have followed the guide and noticed that auth0/express-jwt added req.auth instead of req.user.
    Also documented in the README as of v6: "The decoded JWT payload is now available as req.auth rather than req.user".

    • @OktaDev
      @OktaDev  Рік тому +1

      Thanks for this feedback. We moved this video from another channel into this one. The video was created some years ago so the content may not align with the most up-to-date versions of packages and frameworks.
      We are working on releasing a set of new code samples for NestJS that leverage our latest libraries. We'll share a link to those code samples once they are ready. :) Stay tuned, please!

  • @cenacr007
    @cenacr007 Рік тому

    can you please make a video on how to use passport-auth0 and passport-jwt to do authentication in nestjs

  • @eduardylopes3593
    @eduardylopes3593 Рік тому +1

    could you share de repository of your dashboard?

    • @OktaDev
      @OktaDev  Рік тому

      Howdy! We were checking in and unfortunately the dashboard app is no longer available.

  • @ashishkumari-yg4gn
    @ashishkumari-yg4gn Рік тому +2

    Please provide video of rbac in nestjs taking roles from database along with typeORM

    • @OktaDev
      @OktaDev  Рік тому

      Hello. Could you please share more details on the use case that you want to see exemplified?

    • @ashishkumari-yg4gn
      @ashishkumari-yg4gn Рік тому

      @@OktaDev I was fetching role from mongoose database while checking the roles but I am not getting role in the re.user . I have made two model - roles and user . Also I do not know , how to populate value of role in user . I am just getting the objectID . I am using TypeORM with mongoose