Skip to content

Commit c571bce

Browse files
authored
Merge pull request #48 from GearPlug/fix/auth-hotfix
hotfix: Removed headers validation
2 parents 62d055f + e218b9e commit c571bce

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

microsoftgraph/client.py

-3
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,6 @@ def _request(self, method, url, headers=None, **kwargs) -> Response:
252252
if headers:
253253
_headers.update(headers)
254254

255-
if headers in ("JWT_REQUIRED"):
256-
_headers["Authorization"] = "JWT " + self.token["access_token"]
257-
258255
_headers["Authorization"] = "Bearer " + self.token["access_token"]
259256

260257
if self.requests_hooks:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "microsoftgraph-python"
3-
version = "1.1.7"
3+
version = "1.1.8"
44
description = "API wrapper for Microsoft Graph written in Python"
55
authors = ["Gearplug Team <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)