Skip to content

Commit 6f75131

Browse files
committed
Update oauth2.py
1 parent 0788b7d commit 6f75131

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

msal/oauth2cli/oauth2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ def initiate_device_flow(self, scope=None, *, data=None, **kwargs):
323323
DAE = "device_authorization_endpoint"
324324
if not self.configuration.get(DAE):
325325
raise ValueError("You need to provide device authorization endpoint")
326-
data = {"client_id": self.client_id, "scope": self._stringify(scope or [])}
327-
if claims_challenge:
328-
data["claims"] = claims_challenge
326+
_data = {"client_id": self.client_id, "scope": self._stringify(scope or [])}
327+
if isinstance(data, dict):
328+
_data.update(data)
329329
resp = self._http_client.post(self.configuration[DAE],
330330
data=data,
331331
headers=dict(self.default_headers, **kwargs.pop("headers", {})),

0 commit comments

Comments
 (0)