我正在使用带有服务帐户的 Google API 的最新 beta 1.5 (1.5.0.28991),并且在进行身份验证时在 AssertionFlowClient 行上遇到此错误:
找不到方法:'无效 DotNetOpenAuth.OAuth2.ClientBase..ctor(DotNetOpenAuth.OAuth2.AuthorizationServerDescription, System.String, System.String)'。
DotNetOpenAuth V4.3.1.13153
AuthorizationServerDescription desc = GoogleAuthenticationServer.Description;
X509Certificate2 key = new X509Certificate2(key_file, key_pass, X509KeyStorageFlags.Exportable);
AssertionFlowClient client = new AssertionFlowClient(desc, key) { ServiceAccountId = client_id, Scope = scope };
我对此感到头疼 - 任何指示都会受到赞赏。