Skip to content

Commit b023ebf

Browse files
zadigusaramase
andauthored
fix: AssertionError: Invalid parameter type error in msal-python example (#1396)
Co-authored-by: Anish Ramasekar <anish.ramasekar@gmail.com>
1 parent 52b1042 commit b023ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/msal-python/token_credential.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, azure_client_id, azure_tenant_id, azure_authority_host, azure
2121

2222
def get_token(self, *scopes, **kwargs):
2323
# get the token using the application
24-
token = self.app.acquire_token_for_client(scopes)
24+
token = self.app.acquire_token_for_client(list(scopes))
2525
if 'error' in token:
2626
raise Exception(token['error_description'])
2727
expires_on = time.time() + token['expires_in']

0 commit comments

Comments
 (0)