-
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] Wrapper for packages that use @azure/ms-rest-nodeauth #11359
Comments
Assuming we know which "scope" to use, we have a couple of options where we update the v4 code generator to provide a solution here. This scope would be the same for all ARM packages, but would be different for the rest like batch, graph, service fabric etc.
@joheredi, Thoughts? cc @daviwil Once we are done with the above, the Authenticate with the Azure management modules for JavaScript will need to be updated as well |
Option 1 is of course the cheaper option, however we may end up with a snippet that is not easy to follow. Option 3 makes sense, as it shouldn't be too difficult to generate the overload and adapter. Also the user experience will be better. @ramya-rao-a what's the timeframe for this? |
Yeah, i recommend creating the adapter - please steal the existing code. |
Heads up , removed space from file name, new path: https://github.com/jongio/azidext/blob/master/js/azureIdentityCredentialAdapter.ts |
@joheredi If Option 3 is doable, then doing so now during the MQ milestone would be preferable |
@joheredi Can you log an issue in the code gen repo, link it here and close this issue? |
Logged Azure/autorest.typescript#815 which will be the main tracking issue |
Most of the JS packages for Azure services use the credentials from the @azure/ms-rest-nodeauth. These follow the TokenClientCredentials interface.
Now the latest docs around Identity will lead people to the @azure/identity which is also the place where active development is taking place.
In order to take advantage of the new features in the @azure/identity package, it would be good to have a wrapper/helper method that would take a credential from the new package and return something that follows the interface TokenClientCredentials from the older package
@jongio did mention that he has something along these lines. If so, can we have a pointer to it from the readme of the @azure/identity package?
cc @jonathandturner
The text was updated successfully, but these errors were encountered: