Skip to content

Commit 54dc244

Browse files
authored
Merge pull request #64 from AzureAD/scopes-are-required-in-username-password-flow
Change an optional scopes parameter to be required
2 parents d79cc5a + 002a135 commit 54dc244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def acquire_token_by_device_flow(self, flow, **kwargs):
512512
**kwargs)
513513

514514
def acquire_token_by_username_password(
515-
self, username, password, scopes=None, **kwargs):
515+
self, username, password, scopes, **kwargs):
516516
"""Gets a token for a given resource via user credentails.
517517
518518
See this page for constraints of Username Password Flow.

0 commit comments

Comments
 (0)