How to add Role-Based Access Control in Next.js 15: Protected Routes & APIs (Auth0 RBAC Tutorial)

preview_player
Показать описание


-----------------

🔴 Looking for the code from my other builds? 🛠️

📩 WANT TO LISTEN TO THE EXCLUSIVE PAPAFAM PLAYLIST?

🕐 TIMESTAMPS
00:00 Intro
00:38 Project Demo
02:01 Why Use Auth0 for Role-Based Access Control
05:05 Explaining Auth0 Features
05:42 Explaining User Roles & Permissions
07:24 Setting Up Auth0 from Scratch
14:41 Creating & Assigning Roles in Auth0
18:51 Testing Role-Based Access Control
21:16 Explaining Role-Based Access Control in Detail
27:41 Outro

Let’s get it PAPAFAM 🔥.

#reactjs #nextjs #tutorial #rbac #authentication #api #user #admin #beginner #tutorial #coding #tech #ai
Рекомендации по теме
Комментарии
Автор

Please make a microservice project as a new year gift. Don't use convex, appwrite. We are here to learn industry standards technology.

AbhishekYadav-chmn
Автор

This kind of mini videos are great for me, thanks, keep it up, I would like to see other integrations with nextjs to have more available, Hono, drizzle, cloudflare etc.

Next-Js
Автор

Nice video! The server actions(s) to get the access token for the application and then to read the user roles is not really needed. You can use a Action directly in Auth0 to add the users roles as custom claims in both the access and identity token as part of the post login flow.

mjonsing
Автор

Hey Sonny - Can't wait to check Auth0 out. Just wondered if you will be doing a similar role/permission based tutorial with Clerk/Clerk webhooks and/or BetterAuth?? I have tried using clerk and I cant figure out how to get that to work within a single organisation. Seems like multiple orgs are needed....or i'm confused AF!! Keep up the amazing work - you are the man!! 💙from 🥝New Zealand.

AntNZ
Автор

Hi sonny, you are doing a very big work for us, I appreciate, but most of the companies nowadays need to own full control of their systems ie no much integration of other api providers . Kindly also give us educational contents of frontend systems communicating with a fully document bakend system that is secured with like swagger covering mostly the ecosystem of dev

NandutuSarah-gr
Автор

Hola alguien que me ayude con el Default user Role, hago todo exactamente igual y no me lo asigna por default

luisvanegasdev
Автор

next please complete authentication system login, signup, access control with two factor with firebase and nextjs

BirtuCoder
Автор

Thanks you for this video and for you live session like market ticket place with Convex that is an amazing service !
Could you do an another Saas That combine open Ai or another AI with search vector that Convex allow to do!

Thanks for advance and thanks for your amazing job!

yanDev
Автор

Hii sir, I see you are uploading less shorts in your channel . I am also work in the field of social media I think today's every creator use shorts for their growth . Everyone us using shorts . Here I can also in editing shorts from your long long videos . If you want

Shivansh_singh
Автор

These platforms are real expensive as the number of users increase.

sudhanshugautam
Автор

Build it from scratch all IT company build own authentication not third party

system