Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

Resource Token Expiry Seconds in readPermissions #237

Open gpinolo opened 5 years ago

gpinolo commented 5 years ago

It is not possible set the "resource token expiry seconds" when invoke the readPermissions(String userLink, FeedOptions options) API of async client: unlike RequestOptions, FeedOptions has not setResourceTokenExpirySeconds method.

christopheranderson commented 5 years ago

@mbhaskar - could you look at this and look at v3?

apescione commented 4 years ago

Also in V3 there is no support. Probably, it should be added com.azure.data.cosmos.CosmosUser.readAllPermissions(FeedOptions) in FeedOptions.. I've tried also put feedOptions.properties().put("x-ms-documentdb-expiry-seconds", expirySeconds); into properties, but it doesn't work. Cosmos API, instead, accepts this parameter. https://docs.microsoft.com/en-us/rest/api/cosmos-db/list-permissions Let me know when you can introduce this feature.

alexmartinezm commented 4 years ago

Any plan to solve this issue? It's not working in .NET.

Thanks.