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.
1 parent 5d2853f commit 511a347Copy full SHA for 511a347
klad.py
@@ -1,9 +1,8 @@
1
import os
2
-from typing import Union
3
from azure.keyvault.secrets import SecretClient
4
from azure.identity import ManagedIdentityCredential, InteractiveBrowserCredential
5
6
-def get_credentials() -> Union[ManagedIdentityCredential, InteractiveBrowserCredential]:
+def get_credentials():
7
# Check if the code is running in the cloud (Azure App Service, Azure Functions, etc.)
8
if "WEBSITE_SITE_NAME" in os.environ:
9
credential = ManagedIdentityCredential()
requirements.txt
@@ -2,4 +2,4 @@ Flask==2.2.2
gunicorn
Werkzeug==2.2.2
azure-identity
-azure-keyvault
+azure-identity
0 commit comments