private static Dictionary <string, string> GetOAuthSettings() { var secretService = new GoogleSecretManagerService(); const string oauthClientIdSecretName = "Authentication_Google_ClientId"; const string oauthClientSecretSecretName = "Authentication_Google_ClientSecret"; return(new Dictionary <string, string> { { oauthClientIdSecretName, secretService.GetSecretAsync(oauthClientIdSecretName).GetAwaiter().GetResult() }, { oauthClientSecretSecretName, secretService.GetSecretAsync(oauthClientSecretSecretName).GetAwaiter().GetResult() }, }); }
private async Task LoadAsync() { await foreach (string secretId in googleSecretManagerService.ListSecretsAsync()) { string secretValue = await googleSecretManagerService.GetSecretAsync(secretId); Data.Add(secretId, secretValue); } }