-
Notifications
You must be signed in to change notification settings - Fork 210
Description
Getting Error while trying to acquire Token using below
from msal import ConfidentialClientApplication
#import secrets from keyvault
service_principal_id = dbutils.secrets.get(scope = secret_scope, key = "clientid")
service_principal_secret = dbutils.secrets.get(scope = secret_scope, key = "clientsecret")
tenant_id = dbutils.secrets.get(scope = secret_scope, key = "tenant-id")
authority = "https://login.windows.net/" + tenant_id
app = ConfidentialClientApplication(
client_id=service_principal_id,
client_credential=service_principal_secret,
authority=authority
)
s = "https://graph.microsoft.com/.default"
result = app.acquire_token_for_client(scopes=s)
a = result.get("access_token")
print(a)
Getting Error on this line , this was working fine until 21-Jul-2023
app.acquire_token_for_client
Please let me know what has changed in MSAL(PYPI) or what is the alternative with latest version
If this can work with Previous Version let me know, which version to use
Thanks