【发布时间】:2015-08-02 23:40:41
【问题描述】:
我正在使用 Google Auth .net Api 进行客户端身份验证
var clientSecrets = new Uri(SettingsViewModel.GoogleClientSecretsUri);
this.UserCredential = await GoogleWebAuthorizationBroker.AuthorizeAsync(
clientSecrets,
this.Scopes,
"user",
CancellationToken.None
);
在 Google 登录 webcontrol 回调它抛出的客户端后:
解析值时遇到意外字符:。路径'',行 0,位置 0。
有什么建议可以解决这个问题吗?
【问题讨论】:
-
我猜一下:谷歌返回的错误页面是 html 内容,而不是 json。
-
即使在显示正确的同意页面后也会发生这种情况吗?
-
下载Fiddler并查看您的网络流量
标签: c# windows-10 google-api-dotnet-client google-authentication