DefaultAuthentication and AzAuth #513
Natraj Yegnaraman (rajyraman)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Can we please use a subclass of TokenCredential, rather than use DefaultAzureCredential always?
PowerPlatform-DataverseServiceClient/src/GeneralTools/DataverseClient/Extensions/Microsoft.PowerPlatform.Dataverse.Client.AzAuth/AzAuth.cs
Line 20 in e5c182b
Reason being it is easier to use ChainedTokenCredential and force auth to resolve auth using only ManagedIdentityCredential and EnvironmentCredential for example. Without the use of ChainedTokenCredential, you have to use a whole bunch of exclude flags on DefaultAzureCredentialOptions (see example below). To me, this feels bit clunky.
There was a survey I filled recently on LinkedIn on this topic, and I thought I will log this as a discussion item today.
All reactions