【发布时间】:2014-05-04 21:58:08
【问题描述】:
我正在尝试使用 nuget 包 Google.Apis.Auth.1.8.1 在 Windows Phone 和 Windows Store 应用程序中进行身份验证。
我发现了这个 Google C# Api Beta 1.6 Authentication Issue 和这个 https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth 但我不想使用 CalendarService...
我的问题是:
-
哪个是最适合我的样本 - 我只想进行身份验证?是这个吗(注意:这是针对 Windows 应用商店的应用)
var credential = await GoogleWebAuthorizationBroker.AuthorizeAsync( new Uri("ms-appx:///Assets/client_secrets.json"), null, "user", CancellationToken.None ); -
client_secrets.json 的格式是什么?是这个吗
{ "clientid ": "the client id here", "clientsecret ": "the client secret here", }
【问题讨论】:
标签: authentication windows-phone-8 windows-store-apps google-api-dotnet-client