Hello! I develop a python application that must use cosmos resource tokens to authorize clients for resources. I have a few questions, please give me some advice.
I did not find any documentation on how to authenticate MongoDB using resource token, does this possible?
I tried to interact with mongo on cosmos db using CosmosClient (azure-cosmos==4.0.0) and using REST API and got error {"code":"Forbidden","message":"Sql api is not supported for this database account\r\nActivityId: ..., Microsoft.Azure.Documents.Common/2.11.0”} in both cases. Does mongo in cosmos support REST API?
https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb-introduction#cosmos-dbs-api-for-mongodb
This doc saying that by default possible to interact using SQL API, I got that error.
Please give me some advice.