Replies: 1 comment 3 replies
-
@dzsquared Any ideas here? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say i have a function with an HTTP trigger for an SQL input binding at
/api/groups
.I know i can pass parameters to an endpoint through the HTTP request body/query. But i would really like to be able to do this from inside the function. So my question/idea is:
How can i pass parameters to an SQL input binding from inside a function, like
context.bindings.groups.parameters.CreatorID = req.user.id
?How can i perform server-side auth checks inside a function to disallow/modify/overrule an SQL input binding, e.g. blocking certain user roles? I know i can setup access permissions in
staticwebapp.config.json
, but sometimes i want to make more fine-grained decisions based on the read SQL data.If this is already possible, could someone please document it.
Beta Was this translation helpful? Give feedback.
All reactions