-
Notifications
You must be signed in to change notification settings - Fork 4.1k
authenticate token each time client is sending request #12454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Accounts/Authentication/Authentication/RenewingTokenCredential.cs
Outdated
Show resolved
Hide resolved
src/Accounts/Authentication/Authentication/RenewingTokenCredential.cs
Outdated
Show resolved
Hide resolved
|
|
markcowl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment. Also, what validation are we planning to do here?
src/Accounts/Authentication/Authentication/RenewingAccessTokenProvider.cs
Outdated
Show resolved
Hide resolved
|
src/Accounts/Authentication/Authentication/RenewingAccessTokenProvider.cs
Outdated
Show resolved
Hide resolved
|
/azp run azure-powershell - powershell-core |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Description
#11925
#6585
Added delegate function to
RenewingTokenCredentialwhen management client was instantiated.This function will authenticate token (refresh if expired) each time
ProcessHttpRequestAsyncwas called.ProcessHttpRequestAsyncwill be executed before management client tries to send request (include polling for long running operation)https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/mgmtcommon/ClientRuntime.Azure/ClientRuntime.Azure/LRO/LROPollState.cs#L182
Checklist
CONTRIBUTING.mdChangeLog.mdfile(s) has been updated:ChangeLog.mdfile can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md## Upcoming Releaseheader -- no new version header should be added