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] Add new @azure/identity library and @azure/core-http abstractions #3449

Merged
merged 23 commits into from
Jun 6, 2019

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Jun 4, 2019

This PR introduces the new @azure/identity library for simplifying client authentication in the new Azure data plane SDK libraries. I might wait to add thorough tests so that folks can go ahead and take a dependency on the @azure/core-http abstractions ASAP.

Questions for Reviewers

  • Is it a good idea to alias string | string[] to CredentialScopes or does that introduce unnecessary import complexity?
  • Should I run Prettier or some other formatter over this code before merging?

Tasks

  • Test ClientSecretCredential against Azure to ensure it retrieves an access token successfully
  • Write basic tests for AzureCredential, EnvironmentCredential, and ClientSecretCredential
  • Run Prettier on code
  • Add basic usage instructions in README.md

Related to #2650.

@daviwil daviwil requested review from schaabs and ramya-rao-a June 4, 2019 21:46
@ramya-rao-a
Copy link
Contributor

I wouldnt alias string | string[] to CredentialScopes. Its one more level of indirection which I don't believe we need.
Do run Prettier. I believe all the new packages are using it.

@daviwil daviwil force-pushed the add-azure-identity branch from 7ba4d05 to 9b5acac Compare June 5, 2019 05:02
@daviwil daviwil marked this pull request as ready for review June 5, 2019 22:15
@daviwil
Copy link
Contributor Author

daviwil commented Jun 5, 2019

Thanks for all the feedback so far! I've addressed everything actionable and have moved this PR out of Draft state so that we can move forward with the final review. Please let me know if you have any other feedback!

Copy link
Member

@schaabs schaabs left a comment

Choose a reason for hiding this comment

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

:shipit:

@daviwil daviwil force-pushed the add-azure-identity branch from 4f16b25 to f25edd9 Compare June 6, 2019 04:27
@daviwil daviwil changed the title Add new @azure/identity library and @azure/core-http abstractions [Identity] Add new @azure/identity library and @azure/core-http abstractions Jun 6, 2019
@daviwil daviwil requested a review from ramya-rao-a June 6, 2019 04:46
@daviwil
Copy link
Contributor Author

daviwil commented Jun 6, 2019

Thanks again for all the feedback! I'll rebase this PR and then merge it once CI goes green again 🎉

@daviwil daviwil force-pushed the add-azure-identity branch from e52f7d0 to 2fa959a Compare June 6, 2019 19:26
@daviwil
Copy link
Contributor Author

daviwil commented Jun 6, 2019

Argh, now the npm audit job is failing the build because @azure/core-http isn't published to npm. Why didn't this fail in any of the previous jobs for this PR?

@daviwil daviwil force-pushed the add-azure-identity branch from 2fa959a to fb0e570 Compare June 6, 2019 20:55
@daviwil daviwil merged commit daa7187 into Azure:master Jun 6, 2019
@daviwil daviwil deleted the add-azure-identity branch June 6, 2019 21:10
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.

4 participants