Commit fd339a68 by Oleksandr Barabash

aad creds used

parent d71aa912
...@@ -53,10 +53,10 @@ class CosmosClient: ...@@ -53,10 +53,10 @@ class CosmosClient:
""" Cosmos Client class """ """ Cosmos Client class """
def __init__(self, host: str, master_key: str): def __init__(self, host: str, master_key: str):
self.executor = futures.ThreadPoolExecutor() self.executor = futures.ThreadPoolExecutor()
# aad_credentials = DefaultAzureCredential() aad_credentials = DefaultAzureCredential()
# self.client = cosmos_client.CosmosClient(host, aad_credentials) self.client = cosmos_client.CosmosClient(host, aad_credentials)
self.client = cosmos_client.CosmosClient(host, # self.client = cosmos_client.CosmosClient(host,
dict(masterKey=master_key)) # dict(masterKey=master_key))
async def execute_blocking(self, bl, *args): async def execute_blocking(self, bl, *args):
""" Execute blocking code """ """ Execute blocking code """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment