-
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
Confused about @azure/ms-node-auth vs @azure/identity vs MSAL.js #12565
Comments
Thanks for reporting @southpolesteve @jonathandturner, @daviwil, @sadasant,
|
@southpolesteve Can you list the top app types or identity issues, from your perspective, a customer is trying to figure out when asking this question? Here are my questions I'm working to answer in docs - feel free to add your own?
|
@diberry I think you covered it well. Maybe your first case captures this, but I think it can be broken in two:
I also think there is a "Just make it work any way you can" case for developers. I won't put an web app in production with vscode based login, but if it helps me get the app working or improves development, I want that to be possible. |
@southpolesteve Hello Steve! I'll be going through your feedback and making an update to our documentation as soon as possible. I'll get in contact with you in case I'm missing something. Thank you for submitting this issue! |
@sadasant @ramya-rao-a Do you want to be included on Dev Center changes or localize this issue to your own SDK content? |
@diberry I'd like to be included in the Dev Center changes! If anything, for exposure. |
Hi again! Just to mention that I'll provide more information next week. |
I believe that the questions @diberry is working on will be helpful for you! Let me answer some of the other things you mention here.
Even though all of them can be used,
I've made an issue! #12669 . I'll follow up this week.
I'll take a look and I'll make some notes! While I move ahead with the readme update etc, how else can I be useful here? Please let me know if I'm missing something! |
On MSAL: MSAL does offer several features that are not yet available in our SDK, but we will be adding support as soon as possible. These include more control on the caching and the storing of the credentials. However, we're working as closely as possible with the MSAL team, so we should be able to level up with them in a couple of months, as far as I'm understanding. It's in our interest to request people to use the @azure/identity library as much as possible, instead of the possible alternatives, since direct customer feedback will help us make this experience better for everyone. |
@sadasant thanks for the explainer, I've been wondering the differences for awhile! What is the recommendation for providing browser-based authentication (e.g. for webapps needing a credential)? |
@seanknox You can use the @azure/ms-rest-browserauth package when working with |
@ramya-rao-a |
@seanknox Hello hello! I wonder if a credential like @azure/identity's DeviceCodeCredential can work for you. Would that be useful? In ms-rest-nodeauth we have |
I understand that this wouldn't be on the browser though. Would it be possible to move to @azure/identity 's |
@seanknox All credential classes in @sadasant The packages |
Why don't they support @azure/identity? I'm interested in making it work. If it makes sense, is it because of Continuous Access Evaluation (CAE) challenge based authentication? I believe this is important for ARM resources. We're adding support for CAE this month. |
This has nothing to do with CAE All the management plane packages (the ones dealing with resource management) at the moment are auto generated. The generated code works with the credentials from |
@seanknox Please log an issue in the repo for We have #12669 tracking improvements to the We are independently tracking other efforts to improve documentation around auth. So, closing this issue. Thanks for your patience everyone |
added api-version parameter in agreements APIs (Azure#12565) * added api-version parameter in agreements apis * updated api-version parameter * updated confluent.json * updated confluent.json
then how about library @azure/msal-browser, this lib is using PublicClientApplication to achieve browser login to use graph or other web API. what distinguish it from @azure/identity? |
@leolumicrosoft,
When in browser, the only credential that applies from You are free to use
|
Thank you, @ramya-rao-a. Thank you for the detail reply, I started to understand more of AD related javascript SDK.
Both 3 and 4 can be tested using postman after you get the token by using DefaultAzureCredential in a simple locally run script with "az login". These points maybe very basic but it still give me three days to have a clearer insight into them. |
Describe the bug
It is unclear what the difference is between
@azure/ms-node-auth
,@azure/identity
, andMSAL.js
. I do not know which lib to use when. If there is a doc that explains it, I cannot find one.Expected behavior
A doc explaining each library and when they should be used with examples.
The text was updated successfully, but these errors were encountered: