|
|
|
@ -83,9 +83,13 @@ namespace Yavsc
|
|
|
|
|
|
|
|
|
|
|
|
var googleClientFile = Configuration["Authentication:Google:GoogleWebClientJson"];
|
|
|
|
var googleClientFile = Configuration["Authentication:Google:GoogleWebClientJson"];
|
|
|
|
var googleServiceAccountJsonFile = Configuration["Authentication:Google:GoogleServiceAccountJson"];
|
|
|
|
var googleServiceAccountJsonFile = Configuration["Authentication:Google:GoogleServiceAccountJson"];
|
|
|
|
GoogleWebClientConfiguration = new ConfigurationBuilder().AddJsonFile(googleClientFile).Build();
|
|
|
|
if (googleClientFile!=null)
|
|
|
|
var safile = new FileInfo(googleServiceAccountJsonFile);
|
|
|
|
GoogleWebClientConfiguration = new ConfigurationBuilder().AddJsonFile(googleClientFile).Build();
|
|
|
|
GServiceAccount = JsonConvert.DeserializeObject<GoogleServiceAccount>(safile.OpenText().ReadToEnd());
|
|
|
|
if (googleServiceAccountJsonFile!=null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var safile = new FileInfo(googleServiceAccountJsonFile);
|
|
|
|
|
|
|
|
GServiceAccount = JsonConvert.DeserializeObject<GoogleServiceAccount>(safile.OpenText().ReadToEnd());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static string ConnectionString { get; set; }
|
|
|
|
public static string ConnectionString { get; set; }
|
|
|
|
|