You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is a file called firebase_auth.go (I think?) in /middleware. This file should be improved to act as a gatekeeper to different routes, or (maybe?) different permissions per handler. Currently, it gatekeepers admin and any other non-admin role between routes they're allowed in and not. mod and mod<some sort of school specific identifier> roles should also be added, alongside ways for admins to adjust and remove mod roles. This will be done by altering a Firebase user's authentication token and adding a custom payload. An example, again, for how to alter custom data is in firebase_auth.go.
I'm not super sure how this should be implemented, so I think it would be best to first watch some videos or view other content to learn how a good admin-mod-specific_school_mod-general_user role-based authorization system can be implemented.
The text was updated successfully, but these errors were encountered:
Currently there is a file called
firebase_auth.go
(I think?) in/middleware
. This file should be improved to act as a gatekeeper to different routes, or (maybe?) different permissions per handler. Currently, it gatekeepersadmin
and any other non-admin
role between routes they're allowed in and not.mod
andmod<some sort of school specific identifier>
roles should also be added, alongside ways foradmin
s to adjust and remove mod roles. This will be done by altering a Firebase user's authentication token and adding a custom payload. An example, again, for how to alter custom data is infirebase_auth.go
.I'm not super sure how this should be implemented, so I think it would be best to first watch some videos or view other content to learn how a good
admin-mod-specific_school_mod-general_user
role-based authorization system can be implemented.The text was updated successfully, but these errors were encountered: