Angular Authentication and Role Based Authorization | RBAC

preview_player
Показать описание
In this video we implement authentication and role based authorization (RBAC) in our LinkedIn Clone. We guard certain routes and also take into account the role of the user for certain features.

--------------------------------------------------
Recommended Udemy courses
--------------------------------------------------

Рекомендации по теме
Комментарии
Автор

Thank you, so far the series is going great

ntesla
Автор

Hi and thank you for the tutorials!
Do you plan to make tutorials on how to check permissions wit ABAC (attribute based access control)?

biovawan
Автор

Thanks for this tutorials man.
After some debugging I found out that issue with background colors is not referring to caching.
You are doing take(1) in pipe of userRole, so it never comes back again, because Ionic app by default does not call ngOnDestroy, so ngOnInit is not called as well.
My fix for this is making a destroy$ subject, unsubscribe from it in ngOnDestroy and use it in pipe with takeUntil operator. Also in that case we should add "?" mark in get userRole in auth.service.ts so return will look like this: return of(user?.role) and in switch we should return the default colors again (but not this.bannerColors)
Again, thanks for this tutorial playlist.

serhiikolontaievskyi
Автор

@Jon Peppinck Can you pls tell how to implement and show feature modules based on role ?

mejaay
Автор

notice! Plugins.Storage used on 38:11 was dead. instead i use import Preferences from @capacitor/preferences

su-xoio