Z
ZITADEL
Z
ZITADEL
Role based authorization for navigation within an Angular app
Original message was deleted
ZITADEL
Join
ZITADEL - Identity infrastructure, simplified for you.
4,316
Members
View on Discord
P
peintnermax
•
2/10/23, 2:33 PM
What you need is a guard
, which checks the roles of the user
. This will look similar to this
https://github.com/zitadel/zitadel/blob/main/console/src/app/guards/role.guard.ts
and then in your router you can import it and set the required roles
https://github.com/zitadel/zitadel/blob/main/console/src/app/app-routing.module.ts#L62
GitHub
zitadel/role.guard.ts at main · zitadel/zitadel
ZITADEL
- The best of Auth0 and Keycloak combined
. Built for the serverless era
.
- zitadel
/role
.guard
.ts at main
· zitadel
/zitadel
GitHub
zitadel/app-routing.module.ts at main · zitadel/zitadel
ZITADEL
- The best of Auth0 and Keycloak combined
. Built for the serverless era
.
- zitadel
/app
-routing
.module
.ts at main
· zitadel
/zitadel