Replies: 5 comments 19 replies
-
i am actually running into this to right now, and it looks like it is related to some update as the code i have worked perfectly fine before. (as in last wednesday). |
Beta Was this translation helpful? Give feedback.
-
Are you using the database connection for Azure static webapps or are you hosting it in another way. Can you try running it with the previous version and not the latest? |
Beta Was this translation helpful? Give feedback.
-
Got it thanks @anirudh
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Aniruddh Munde ***@***.***>
Sent: Tuesday, April 11, 2023 9:47:53 PM
To: Azure/data-api-builder ***@***.***>
Cc: Sumesh Chandran ***@***.***>; Mention ***@***.***>
Subject: Re: [Azure/data-api-builder] Getting Access forbidden message when trying to use filter on graphql queries (Discussion #1423)
Do note we still don't have field level AuthZ policy support for CosmosDB tracked by #597<#597>.
So, you can continue to use it for anonymous users, but not for authenticated users if your application requires that kind of support.
—
Reply to this email directly, view it on GitHub<#1423 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AH74BQ6TWUZEUWH5NNU6AZLXAYXXTANCNFSM6AAAAAAWWD7LVI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
i have promoted this discussion to an issue as there seems no way around this for cosmosdb with the latest version #1434 for people using the data-api for azure static webapps, you can still develop locally by installing the 0.35.5 version
and then run it from the swa-db-connections
and then use the data-api-url option of the swa cli
|
Beta Was this translation helpful? Give feedback.
-
Thank you for pointing this out and bringing this to our attention! We just had a PR merged for addressing this issue #1436. We will have this change included in the next release. |
Beta Was this translation helpful? Give feedback.
-
I have been trying out the data api builder for azure cosmos db and so far was successfully able to pull data from Azure Cosmos db. The issue I am having now is, when I use filter on the queries I get "Access forbidden to a field referenced in the filter." I believe this has something to do configuring the permissions on the dab-config.json, but I am not able to get a head start so far on this.
Here is my query -
Here is the result -
Also attaching my dab-config json file -
Beta Was this translation helpful? Give feedback.
All reactions