We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8ddbf2 + a19f7a7 commit 9e19c55Copy full SHA for 9e19c55
src/api/common/database/sqldb_service.py
@@ -18,9 +18,10 @@ async def get_db_connection():
18
username = config.sqldb_username
19
password = config.sqldb_database
20
driver = config.driver
21
+ mid_id = config.mid_id
22
23
try:
- async with ManagedIdentityCredential() as credential:
24
+ async with ManagedIdentityCredential(client_id=mid_id) as credential:
25
token = await credential.get_token("https://database.windows.net/.default")
26
token_bytes = token.token.encode("utf-16-LE")
27
token_struct = struct.pack(
0 commit comments