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] Remove machine-code-dependent codepaths #15024

Conversation

witemple-msft
Copy link
Member

This PR removes all codepaths from @azure/identity that are dependent on native machine code modules.

  • Removes VisualStudioCodeCredential
  • Removes all forms of token persistence provided by @azure/msal-node-extensions
  • Removes optionalDependency on keytar.

This also involved the removal of many tests related to the persistence API. We plan to reintroduce this code within a separate package.

@witemple-msft witemple-msft added Client This issue points to a problem in the data-plane of the library. Azure.Identity labels Apr 26, 2021
@witemple-msft witemple-msft requested a review from sadasant April 26, 2021 19:09
@witemple-msft witemple-msft self-assigned this Apr 26, 2021
@witemple-msft witemple-msft changed the base branch from master to identity-2.0.0-beta.3 April 26, 2021 20:56
@witemple-msft
Copy link
Member Author

/azp run js - identity - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@Azure Azure deleted a comment from check-enforcer bot Apr 26, 2021
@witemple-msft
Copy link
Member Author

CI passed:

image

Copy link
Contributor

@sadasant sadasant left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you 👍

@witemple-msft
Copy link
Member Author

/check-enforcer override

@witemple-msft witemple-msft merged commit a60a631 into Azure:identity-2.0.0-beta.3 Apr 26, 2021
witemple-msft added a commit that referenced this pull request Apr 27, 2021
* [identity] Remove machine-code-dependent codepaths

* Linter fixes

* Disable broken perf test

* Added missing import back
@01
Copy link

01 commented May 4, 2021

Any guidance on how to utilize this version, not seeing beta.3 on npmjs. Currently having major issues with app service deployments due to keytar and node-gyp

witemple-msft added a commit that referenced this pull request Jun 21, 2021
…-persistence (#15384)

* [identity] Remove machine-code-dependent codepaths (#15024)

* [identityg Remove machine-code-dependent codepaths

* Linter fixes

* Disable broken perf test

* Added missing import back

* [identity] Add extension registration API and default credential stack

* [identity-native] Introducing identity-native

* [identity] Rework extension API.

* Remove identity native

* Identity-persistence module

* Adding identity-vscode module

* Updated rush configuration

* Moved identity perf back to linking local identity

* Symbolic refactor of extension system

* Renamed MsalCredentialOptions to CacheableCredentialOptions

* Use Symbol.for instead of hacking around SymbolConstructor

* Improved identity-vscode samples

* Use persistence by default if a persistence provider has been registered.

* Improved identity-persistence samples

* Rename to identity-cache-persistence

* Feedback from arch board for mainline identity package

* Rename CredentialPersistenceOptions, format and lint

* Revert sanitization of scopes.

* Regenerated API.md for mainline identity

* Add tests and finalize @azure/identity-cache-persistence

* Record tests for identity-cache-persistence

* Renamed sample files.

* Some changes for testing in identity

* Updated identity-vscode

* Remove async version of useIdentityExtension

* Added a couple of tests for default no-extension behavior

* Fixed tests in recorder

* Removed errant console.log

* Added basic tests of identity-vscode

* Fixed a couple of tests that have started caching correctly

* Added browser shim for extensions/consumer.ts

* Mock keytar using sinon in live/playback environments

* Disable persistence tests on node !== 12

* Addressed feedback in identity-cache-persistence

* Restore perf-test

* Removed sanitizeScopeUrl from recorder

* Update sdk/identity/identity/src/credentials/visualStudioCodeCredential.ts

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>

* Fix gitignores

* Feedback for identity-vscode

* Changelog entry for recorder changes.

* core-http -> core-auth

* setter methods instead of setter props

* Some changes to docs and keywords

* Fixed linter warning

* Switch persistence tests from 12 to 14.

* Make the tests even refuse to import msal-node-extensions on anything other than Node 14

* Reverted changes to recorder

* master -> main

* More master -> main

* [identity] Make the samples extract only part of the token data

Co-authored-by: Jeff Fisher <xirzec@xirzec.com>
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Jul 8, 2021
Fixing swagger correctness and completeness issues for RecoveryServicesBackup (Azure#15024)

* Fixing swagger correctness and completeness issues for
RecoveryServicesBackup

* Adding examples

* Fixing swagger completness

* Updating tag in 2021-04-01

* Update

* Update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants