From 0f1ab8d5d97b3722776c2c661f6f083a26d1fec2 Mon Sep 17 00:00:00 2001 From: Jiashuo Li Date: Thu, 1 Apr 2021 16:54:32 +0800 Subject: [PATCH] Fix type hint for `client_credential` --- msal/application.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/msal/application.py b/msal/application.py index cf4a1a3a..dbe11e9d 100644 --- a/msal/application.py +++ b/msal/application.py @@ -120,7 +120,7 @@ def __init__( :param str client_id: Your app has a client_id after you register it on AAD. - :param str client_credential: + :param Union[str, dict] client_credential: For :class:`PublicClientApplication`, you simply use `None` here. For :class:`ConfidentialClientApplication`, it can be a string containing client secret, @@ -1343,4 +1343,3 @@ def acquire_token_on_behalf_of(self, user_assertion, scopes, claims_challenge=No **kwargs)) telemetry_context.update_telemetry(response) return response -