Skip to content
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: managedIdentityCredential expires-in/-on #24102

Merged
merged 4 commits into from
Dec 5, 2022
Merged

identity: managedIdentityCredential expires-in/-on #24102

merged 4 commits into from
Dec 5, 2022

Conversation

nwf-msr
Copy link
Contributor

@nwf-msr nwf-msr commented Dec 3, 2022

Packages impacted by this PR

@azure/identity

Issues associated with this PR

#24003

Describe the problem that is addressed by this PR

Sometimes token lifetimes are tracked by absolute timestamps ("expires On") and sometimes using a time interval ("expires In"). The managedIdentityCredential AppTokenProvider implementation was inconsistent in its treatment, directly coercing an absolute timestamp to an interval.

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?

It would be better if the SDK were consistent internally in its use of relative or absolute time, but that's a much taller ask.

Are there test cases added in this PR? (If not, why?)

No, but someone should.

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

Sometimes token lifetimes are tracked by absolute timestamps ("expires
On") and sometimes using a time interval ("expires In").  The
managedIdentityCredential AppTokenProvider implementation was
inconsistent in its treatment, directly coercing an absolute timestamp
to an interval.

See #24003 for
example downstream effects.
@ghost ghost added Azure.Identity customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Dec 3, 2022
@ghost
Copy link

ghost commented Dec 3, 2022

Thank you for your contribution nwf-msr! We will review the pull request and get back to you soon.

@KarishmaGhiya
Copy link
Member

Can you run rushx format on your end? @nwf-msr

@nwf-msr
Copy link
Contributor Author

nwf-msr commented Dec 5, 2022

Thanks for the feedback; JS is not my native tongue. :)

Would you like me to squash the commits or will you do that when merging?

@KarishmaGhiya
Copy link
Member

Thanks for the feedback; JS is not my native tongue. :)

Would you like me to squash the commits or will you do that when merging?

I'll do it when merging

@KarishmaGhiya KarishmaGhiya enabled auto-merge (squash) December 5, 2022 22:07
@xirzec
Copy link
Member

xirzec commented Dec 6, 2022

Thanks for the feedback; JS is not my native tongue. :)

Thanks again for your contribution! 😄

azure-sdk pushed a commit to azure-sdk/azure-sdk-for-js that referenced this pull request Nov 10, 2023
Release web 2023 01 01 (Azure#26545)

* Add new api-version 2023-01-01 (Azure#22962)

* Add new api-version 2023-01-01

* Change default package api-version

* Updated workflowstate to be a reference (Azure#23084)

* Fix OneDeploy request and response bodies (Azure#23224)

* Fix OneDeploy request and response bodies

* Fixing typo

* Add Container Apps Environment Id in checknameavailability API (Azure#24102)

Co-authored-by: Vishal Gupta <[email protected]>

* Add minTlsCipherSuite property (Azure#24198)

* Add minTlsCipherSuite property

* Move to SiteConfig

---------

Co-authored-by: Chris Rosenblatt <[email protected]>

* Dapr configuration for a site (Azure#24606)

* Dapr configuration for a site

* removed dapr older definition

* adding back old dapr definition

* Modified 'Dapr' to 'DaprConfig' to resolve conflicts with older dapr definition

* to initiate checks as re-run

* fixed prettier check fail

---------

Co-authored-by: Sushmitha Vangala <[email protected]>

* Fix for JS SDK check failure for Dapr Config (Azure#25493)

* Dapr configuration for a site

* removed dapr older definition

* adding back old dapr definition

* Modified 'Dapr' to 'DaprConfig' to resolve conflicts with older dapr definition

* to initiate checks as re-run

* fixed prettier check fail

* JS Sdk check fail fix

---------

Co-authored-by: Sushmitha Vangala <[email protected]>

* Release web 2023 01 01 (Azure#25157)

* Adding locations/usages endpoint and example

* Revert "Adding locations/usages endpoint and example"

This reverts commit 4a1110765d08c5c96d65f884237313515d842586.

* Adding back usages changes with up to date branch

* Updates based on verification tools

* Fixing spacing, adding missing comma

* ran prettier-fix for formatting

* Update for new QMS requirements with ZR

* Using prettier to fix linter error

* Adding ZR endpoint

* Fixing duplicate operationId

* QMS Usages

* Validation changes

* Updating schema

* Updating for collection

* fixing pr comments

* Resolving comments

* Updating description

* Resolving comments

---------

Co-authored-by: Rohini Sharma <[email protected]>

* Release web 2023 01 01 (Azure#25629)

* Adding locations/usages endpoint and example

* Revert "Adding locations/usages endpoint and example"

This reverts commit 4a1110765d08c5c96d65f884237313515d842586.

* Adding back usages changes with up to date branch

* Updates based on verification tools

* Fixing spacing, adding missing comma

* ran prettier-fix for formatting

* Update for new QMS requirements with ZR

* Using prettier to fix linter error

* Adding ZR endpoint

* Fixing duplicate operationId

* QMS Usages

* Validation changes

* Updating schema

* Updating for collection

* fixing pr comments

* Resolving comments

* Updating description

* Resolving comments

* Removing quota type parameter

---------

Co-authored-by: Rohini Sharma <[email protected]>

* Adding workload profile & resource config to Site (Azure#25868)

* Adding workload profile & resource config to Site

* prettier fix

* cosmetic fix

* updating examples

* prettier fix

* Fix Python SDK failure for Dapr log level config (Azure#26198)

* Rename log level enum for dapr

* Fix Python SDK failure for Dapr log level config

* Rename log level num for dapr (Azure#26374)

* Rename log level num for dapr

* Rename log level num for dapr

* initial change to add ase regions (Azure#26333)

* initial change to add ase regions

* addressing comments

* nit adding example as suggested

* formatting code

* add custom word

* prettier everything

* prettier everything

* Revert "Fix OneDeploy request and response bodies (Azure#23224)" (Azure#26580)

This reverts commit 7dfc303ee18440ee5eede155bb0d63797fbdc4bb.

---------

Co-authored-by: Alex Karcher <[email protected]>
Co-authored-by: dannysongg <[email protected]>
Co-authored-by: Vishal Gupta <[email protected]>
Co-authored-by: Vishal Gupta <[email protected]>
Co-authored-by: Chris Rosenblatt <[email protected]>
Co-authored-by: Chris Rosenblatt <[email protected]>
Co-authored-by: SushmithaVReddy <[email protected]>
Co-authored-by: Sushmitha Vangala <[email protected]>
Co-authored-by: rohinisharma <[email protected]>
Co-authored-by: Rohini Sharma <[email protected]>
Co-authored-by: mukundnigam <[email protected]>
Co-authored-by: Kirstyn Amperiadis <[email protected]>
Co-authored-by: Haochi <[email protected]>
@nwf-msr nwf-msr deleted the 202212-identity-24003 branch September 18, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants