【发布时间】:2018-09-18 05:18:12
【问题描述】:
我在使用 c# 中的一行代码来发出 OAuth2.0 请求时遇到问题。代码是这样的:
WebServerClient consumer = new WebServerClient(CGmail.serverGmail, CGmail.clientIDGmail, CGmail.clientSecretGmail);
consumer.ClientCredentialApplicator = ClientCredentialApplicator.PostParameter(CGmail.clientSecretGmail);
IAuthorizationState grantedAccess = null;
try
{
grantedAccess = consumer.ProcessUserAuthorization(Request);
}
catch (Exception ex)
{
}
grantedAccess = consumer.ProcessUserAuthorization(Request); 行抛出以下错误:
直到昨天,这一切都很好,我没有对此功能进行任何更改。有谁知道会发生什么?
【问题讨论】:
标签: c# .net oauth-2.0 google-signin