active directory – Access Azure Cosmos DB from console application

I have created an Azure Cosmos DB account and database, container etc. I am a member of a security group that can access Azure portal and do the above. Now I need to access this database from a console program by c#. The thing is, I do not want to maintain any secrets so I was wondering, is it possible to access the cosmos db with my current Windows login from that console program? Popup prompt to login with my organization user name, which is also my windows login, is ok. It is like when the console is launched, there will be a popup page to ask me to log in. I then choose my organization login/user account to log in.

Read more here: Source link