File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
src/Microsoft.Identity.Web.Certificateless Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -23,19 +23,7 @@ public class ManagedIdentityClientAssertion : ClientAssertionProviderBase
2323 /// <param name="managedIdentityClientId">Optional ClientId of the Managed Identity or Workload Identity</param>
2424 public ManagedIdentityClientAssertion ( string ? managedIdentityClientId )
2525 {
26- _credential = new DefaultAzureCredential (
27- new DefaultAzureCredentialOptions
28- {
29- ManagedIdentityClientId = managedIdentityClientId ,
30- WorkloadIdentityClientId = managedIdentityClientId ,
31- ExcludeAzureCliCredential = true ,
32- ExcludeAzureDeveloperCliCredential = true ,
33- ExcludeAzurePowerShellCredential = true ,
34- ExcludeInteractiveBrowserCredential = true ,
35- ExcludeSharedTokenCacheCredential = true ,
36- ExcludeVisualStudioCodeCredential = true ,
37- ExcludeVisualStudioCredential = true
38- } ) ;
26+ _credential = new ManagedIdentityCredential ( managedIdentityClientId ) ;
3927 _tokenExchangeUrl = CertificatelessConstants . DefaultTokenExchangeUrl ;
4028 }
4129
You can’t perform that action at this time.
0 commit comments