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() }, }); }
/// <summary> /// Initializes a new instance of the <see cref="GoogleSecretsConfigurationProvider"/> class. /// </summary> public GoogleSecretsConfigurationProvider() { googleSecretManagerService = new GoogleSecretManagerService(); }