Skip to content

[Azure-Core]Auth Header missing when token credential is not expired#11171

Closed
xiafu-msft wants to merge 1 commit intoAzure:masterfrom
xiafu-msft:azure-core
Closed

[Azure-Core]Auth Header missing when token credential is not expired#11171
xiafu-msft wants to merge 1 commit intoAzure:masterfrom
xiafu-msft:azure-core

Conversation

@xiafu-msft
Copy link
Contributor

No description provided.

if self._need_new_token:
self._token = self._credential.get_token(*self._scopes)
self._update_headers(request.http_request.headers, self._token.token)
self._update_headers(request.http_request.headers, self._token.token) # ignore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be # type: ignore

@lmazuel lmazuel requested a review from chlowell May 1, 2020 15:53
@lmazuel
Copy link
Member

lmazuel commented May 1, 2020

@xiafu-msft I extended your PR in #11177 (I cherry-picked your commit in it), but I added unittests as well. Closing this one then, thanks!

@lmazuel lmazuel closed this May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants