Tag: google contacts

GoogleWebAuthorizationBroker无法从IIS主机运行

我使用以下代码使用Google .Net客户端库向Google进行身份validation。 public static void auth() { string clientId = “xxxxxx.apps.googleusercontent.com”; string clientSecret = “xxxxx”; string[] scopes = new string[] { “https://www.googleapis.com/auth/contacts.readonly” }; // view your basic profile info. try { // Use the current Google .net client library to get the Oauth2 stuff. UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = clientId, ClientSecret = […]