Skip to content

Commit fcb10a8

Browse files
deleted extra dile
1 parent c77bb89 commit fcb10a8

File tree

2 files changed

+5
-36
lines changed

2 files changed

+5
-36
lines changed

App/kernel-memory/Helpers/azure_credential.utils.cs

Lines changed: 0 additions & 31 deletions
This file was deleted.

App/kernel-memory/Helpers/azure_credential_utils.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
using System;
3+
using System.Reflection.PortableExecutable;
34
using System.Threading.Tasks;
45
using Azure.Core;
56
using Azure.Identity;
67
namespace Helpers;
78

89
public class azure_credential_utils
910
{
10-
public static TokenCredential GetAzureCredential(string clientId = null)
11+
public static TokenCredential GetAzureCredential(string appEnv = "prod", string clientId = null)
1112
{
1213
//var env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production";
13-
var appEnv = AppGlobals.Configuration["KernelMemory:Services:APP_ENV"] ?? "prod";
1414

1515
if (string.Equals(appEnv, "dev", StringComparison.OrdinalIgnoreCase))
1616
{
@@ -24,8 +24,8 @@ public static TokenCredential GetAzureCredential(string clientId = null)
2424
}
2525
}
2626

27-
public static Task<TokenCredential> GetAzureCredentialAsync(string clientId = null)
27+
public static Task<TokenCredential> GetAzureCredentialAsync(string appEnv = "prod", string clientId = null)
2828
{
29-
return Task.FromResult(GetAzureCredential(clientId));
29+
return Task.FromResult(GetAzureCredential(appEnv, clientId));
3030
}
31-
}
31+
}

0 commit comments

Comments
 (0)