Fix sql server package (revert avoiding chained credential)
This commit is contained in:
parent
fbfa21f89a
commit
38b63455d4
@ -20,15 +20,12 @@ namespace Core.Blueprint.SQLServer.Configuration
|
|||||||
{
|
{
|
||||||
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? string.Empty;
|
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? string.Empty;
|
||||||
|
|
||||||
if (environment != "Local")
|
|
||||||
{
|
|
||||||
var chainedCredentials = new ChainedTokenCredential(
|
var chainedCredentials = new ChainedTokenCredential(
|
||||||
new ManagedIdentityCredential(),
|
new ManagedIdentityCredential(),
|
||||||
new SharedTokenCacheCredential(),
|
new SharedTokenCacheCredential(),
|
||||||
new VisualStudioCredential(),
|
new VisualStudioCredential(),
|
||||||
new VisualStudioCodeCredential()
|
new VisualStudioCodeCredential()
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
services.AddScoped(typeof(IEntityRepository<,>), typeof(EntityRepository<,>));
|
services.AddScoped(typeof(IEntityRepository<,>), typeof(EntityRepository<,>));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user