msgraph-sdk-typescript icon indicating copy to clipboard operation
msgraph-sdk-typescript copied to clipboard

Documentation using DefaultAzureCredential()

Open dmlb2000 opened this issue 11 months ago • 3 comments

Seems like there's a lot of docs to authenticate using the various forms of identities supported by Azure. It'd be good to focus the docs a little and reference some of the more featureful ways to manage authentication in Azure using the DefaultAzureCredential() chained credential workflow.

Thoughts?

dmlb2000 avatar Feb 19 '25 18:02 dmlb2000

Hi @dmlb2000 Thank you for using the SDK and for reaching out.

Based on this documentation

And on this example

Do you think you have enough information to understand how default credentials would work?

Is this something you'd like to submit a pull request for provided some guidance?

baywet avatar Feb 19 '25 19:02 baywet

Hi @dmlb2000 Thank you for using the SDK and for reaching out.

Based on this documentation

And on this example

Do you think you have enough information to understand how default credentials would work?

Is this something you'd like to submit a pull request for provided some guidance?

I'm very confused... the first link is to a Python SDK which isn't Javascript/Typescript, so I'm not sure why that's helpful for this repository. Secondly, the other link seems to have extra stuff in it and maybe a copy paste issue? I'm getting a 404 for that link.

dmlb2000 avatar Feb 19 '25 20:02 dmlb2000

Sorry, I was doing multiple things at the same time... First link https://learn.microsoft.com/en-us/azure/developer/javascript/sdk/authentication/credential-chains#use-defaultazurecredential-for-flexibility

Second one is meant to be the readme of this repository, where we already provide examples for other credentials.

baywet avatar Feb 19 '25 21:02 baywet