-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Identity] [Core] Add support for refresh_on parameter #30402
Conversation
4cff55f
to
fee0f02
Compare
dd3c25f
to
fe54b88
Compare
Update core/ts-http-runtime with changes to AccessToken and tokenCycler after this PR is approved! |
API change check API changes are not detected in this pull request. |
Need to update sendTokenRequest and may be add parseExpiration in the identityClient |
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.
Changes look good to me, minor nit on naming and agree with Maor's suggestion
sdk/identity/identity/src/credentials/managedIdentityCredential/utils.ts
Show resolved
Hide resolved
sdk/identity/identity/src/credentials/managedIdentityCredential/utils.ts
Outdated
Show resolved
Hide resolved
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.
LGTM overall - the only things that I wanted to ask for and will trust your judgement on:
- Should we make the same changes in ts-http-runtime?
- Can we add some unit tests for the refreshOn parsing and tokenCycler logic?
|
46afb14
to
ab2db08
Compare
/azp run js - core - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/check-enforcer evaluate |
Packages impacted by this PR
@azure/core-auth
@azure/core-rest-pipeline
@azure/identity
Issues associated with this PR
Describe the problem that is addressed by this PR
BearerTokenAuthenticationPolicy
should check for the availability and state for of refresh_on forhasRefresh
andmustRefresh
APIs.Python PR for reference - https://github.com/Azure/azure-sdk-for-python/pull/36183/files
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists