Skip to content

Commit 7af214b

Browse files
authored
Merge pull request #282 from AzureAD/acquire-token-interactive-bugfix
Fix a malfunction in yesterday's acquire_token_interactive() PR
2 parents 4cfbba7 + b906afa commit 7af214b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

msal/application.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,9 +1059,11 @@ def acquire_token_interactive(
10591059
port=port or 0),
10601060
prompt=prompt,
10611061
login_hint=login_hint,
1062-
domain_hint=domain_hint,
10631062
timeout=timeout,
1064-
auth_params={"claims": claims},
1063+
auth_params={
1064+
"claims": claims,
1065+
"domain_hint": domain_hint,
1066+
},
10651067
data=dict(kwargs.pop("data", {}), claims=claims),
10661068
headers={
10671069
CLIENT_REQUEST_ID: _get_new_correlation_id(),

tests/http_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ def __init__(self, verify=True, proxies=None, timeout=None):
1010
self.timeout = timeout
1111

1212
def post(self, url, params=None, data=None, headers=None, **kwargs):
13+
assert not kwargs, "Our stack shouldn't leak extra kwargs: %s" % kwargs
1314
return MinimalResponse(requests_resp=self.session.post(
1415
url, params=params, data=data, headers=headers,
1516
timeout=self.timeout))
1617

1718
def get(self, url, params=None, headers=None, **kwargs):
19+
assert not kwargs, "Our stack shouldn't leak extra kwargs: %s" % kwargs
1820
return MinimalResponse(requests_resp=self.session.get(
1921
url, params=params, headers=headers, timeout=self.timeout))
2022

0 commit comments

Comments
 (0)