Skip to content

Commit 74df5ee

Browse files
authored
Merge pull request #65 from AzureAD/dev
Bringing 2 more PRs into pending release-0.4.1 branch
2 parents 4690131 + 54dc244 commit 74df5ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

msal/application.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ def _get_authority_aliases(self, instance):
271271
if not self.authority_groups:
272272
resp = requests.get(
273273
"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize",
274-
headers={'Accept': 'application/json'})
274+
headers={'Accept': 'application/json'},
275+
verify=self.verify, proxies=self.proxies, timeout=self.timeout)
275276
resp.raise_for_status()
276277
self.authority_groups = [
277278
set(group['aliases']) for group in resp.json()['metadata']]
@@ -511,7 +512,7 @@ def acquire_token_by_device_flow(self, flow, **kwargs):
511512
**kwargs)
512513

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

0 commit comments

Comments
 (0)