-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Role-based access to cloud functions #7093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @bahaa-kallas i’m really glad you like the validation feature and I like your suggestion! I am happy to work on this feature if need be. 😊 |
This can be closed, as on the master you can pass:
|
Okay I can see we can pass I'm trying to run this on a Parse.Cloud function.
|
It seems @dblythy was referring to the current Mind that |
when this will be released? is there any specific plan? |
I have a problem that I thought would be solved by this PR, but I don't think so, please enlighten me. |
Just now I realized that the problem is not with how to validate the roles for the triggers or functions, the root problem is why we need to query the DB for checking Role? |
New Feature / Enhancement Checklist
Current Limitation
I just went through the documentation of the new feature "Cloud Functions Validators" while it's without any doubt a feature that we needed a long time ago (btw Thanks for making it happened) But I think the feature missis a "very very" common use case which is Role-based access to cloud functions
Feature / Enhancement Description
Adding another attribute to the options object called
allowUsersWithRole
which take an array contains the names of the Roles (And sure the underlying logic to make this work :D)Example Use Case
Alternatives / Workarounds
In the documentation you offered an alternative in one of the examples by using a field on the user object which serves exactly like user Role (while I don't agree with the approach to handle this use case but it solves the issue)
The text was updated successfully, but these errors were encountered: