我在使用 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);
抛出以下错误:
直到昨天这一切都很好,我没有对此功能进行任何更改。有谁知道会发生什么?
蝴蝶刀刀
相关分类