|
Issue 351: Reimplement OAuth2 (Step 6): WinRT Support
The user code is going to look like this:
var credential = await GoogleWebAuthenticationBroker.AuthenticateAsync(new
Uri("ms-appx:///Assets/client_secrets.json"),
new[] {
Uri.EscapeUriString(CalendarService.Scopes.Calendar.GetStringValue()) },
"Eyal", CancellationToken.None);
var calendarService = new CalendarService(new BaseClientService.Initializer
{
HttpClientInitializer = credential,
ApplicationName = "APP NAME HERE",
});
var list = await calendarService.CalendarList.List().ExecuteAsync();
Total comments: 14
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+856 lines, -0 lines) |
Patch |
|
M |
GoogleApisClient.sln
|
View
|
|
1 chunk |
+112 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.Auth.WinRT/GoogleApis.Auth.WinRT.csproj
|
View
|
1
2
3
4
5
|
1 chunk |
+164 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.Auth.WinRT/OAuth2/AuthorizationCodeBroker.cs
|
View
|
1
2
3
4
5
|
1 chunk |
+101 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.Auth.WinRT/OAuth2/AuthorizationCodeWinRTInstalledApp.cs
|
View
|
1
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.Auth.WinRT/OAuth2/GoogleWebAuthorizationBroker.cs
|
View
|
1
2
3
4
5
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.Auth.WinRT/Properties/AssemblyInfo.cs
|
View
|
1
2
3
4
5
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.Auth.WinRT/packages.config
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.WinRT/Apis/Util/Store/StorageDataStore.cs
|
View
|
1
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.WinRT/GoogleApis.WinRT.csproj
|
View
|
|
1 chunk |
+153 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.WinRT/Properties/AssemblyInfo.cs
|
View
|
1
2
3
4
5
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
Src/GoogleApis.WinRT/packages.config
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
Total messages: 6
|