File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11using System . Reflection ;
22using Azure . Core . Serialization ;
3+ using Azure . Identity ;
34using Dan . Common . Handlers ;
45using Dan . Common . Interfaces ;
56using Dan . Common . Services ;
@@ -117,6 +118,10 @@ public static IHostBuilder ConfigureDanPluginDefaults(this IHostBuilder builder)
117118 services . AddTransient < IDanPluginClientService , DanPluginClientService > ( ) ;
118119 services . AddTransient < ICcrClientService , CcrClientService > ( ) ;
119120
121+ // This can be overwritten by plugins by doing their own registrations if needing special options
122+ var defaultCredentials = new DefaultAzureCredential ( ) ;
123+ services . AddSingleton ( defaultCredentials ) ;
124+
120125 // Try to add the first IEvidenceSourceMetadata implementation we can find in the entry assembly
121126 var evidenceSourceMetadataServiceType = typeof ( IEvidenceSourceMetadata ) ;
122127 var assembly = Assembly . GetEntryAssembly ( ) ;
You can’t perform that action at this time.
0 commit comments