-
Notifications
You must be signed in to change notification settings - Fork 77
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
adding TokenCredential as part of the credential type accepted #846
Conversation
test/azure/generated/AzureReport/autoRestReportServiceForAzure.ts
Outdated
Show resolved
Hide resolved
@@ -588,7 +591,8 @@ public virtual void ConstructRuntimeImportForModelIndex(TSBuilder builder) | |||
|
|||
public virtual void PackageDependencies(JSONObject dependencies) | |||
{ | |||
dependencies.StringProperty("@azure/ms-rest-js", "^2.0.4"); | |||
dependencies.StringProperty("@azure/ms-rest-js", "^2.2.0"); | |||
dependencies.StringProperty("@azure/core-auth", "^1.1.4"); |
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.
I think this dependency should not be added unless there is a credential, right? Is there a simple way to check for this condition here? cc @joheredi
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.
I think you could check either Settings.AddCredentials or Settings.AzureArm
test/azure/generated/AzureCompositeModelClient/azureCompositeModel.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.
Looks great! Thanks for taking on this work, this is going to make things smoother for ARM users
Are the changes from Azure/azure-sdk-for-js#13403 going to be part of this PR or a separate one? |
@ramya-rao-a I will address feedback and generate the updated README.md in this PR. I will mention you in the diffs after I finish. |
@@ -1,88 +1,83 @@ | |||
## An isomorphic javascript sdk for - AutoRestComplexTestService | |||
|
|||
This package contains an isomorphic SDK for AutoRestComplexTestService. | |||
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AutoRestComplexTestService. |
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.
@ramya-rao-a , here is an updated readme file. @joheredi how can I get a display name for a package? I currently just use a normalized package name.
This PR adds support to v4 to accept
@azure/identity
'sTokenCredential
. Most of the work for that support is already inms-rest-js
v2.2.0.Things to note:
TokenCredential
.TokenCredential
in them.Todo:
generate an updated README.md that promotes using@azure/identity
based on Sample improvements to generated readme azure-sdk-for-js#13403.