Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(985)

Unified Diff: Src/GoogleApis.Auth/OAuth2/Flows/AuthorizationCodeFlow.cs

Issue 14341043: Issue 351: Reimplement OAuth2 (Step 4): ServiceAccount and MVC (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: Gus comments Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Src/GoogleApis.Auth/OAuth2/Flows/AuthorizationCodeFlow.cs
===================================================================
rename from Src/GoogleApis.Auth/OAuth2/AuthorizationCodeFlow.cs
rename to Src/GoogleApis.Auth/OAuth2/Flows/AuthorizationCodeFlow.cs
--- a/Src/GoogleApis.Auth/OAuth2/AuthorizationCodeFlow.cs
+++ b/Src/GoogleApis.Auth/OAuth2/Flows/AuthorizationCodeFlow.cs
@@ -29,7 +29,7 @@
using Google.Apis.Util.Store;
using Google.Apis.Testing;
-namespace Google.Apis.Auth.OAuth2
+namespace Google.Apis.Auth.OAuth2.Flows
{
/// <summary>
/// Thread-safe OAuth 2.0 authorization code flow that manages and persists end-user credentials.
@@ -290,7 +290,8 @@
TokenResponseException tokenException = null;
try
{
- var tokenResponse = await request.Execute(httpClient, TokenServerUrl, taskCancellationToken, Clock);
+ var tokenResponse = await request.ExecuteAsync
+ (httpClient, TokenServerUrl, taskCancellationToken, Clock).ConfigureAwait(false);
return tokenResponse;
}
catch (TokenResponseException ex)
@@ -299,7 +300,7 @@
// the data store.
tokenException = ex;
}
- await DeleteTokenAsync(userId, taskCancellationToken);
+ await DeleteTokenAsync(userId, taskCancellationToken).ConfigureAwait(false);
throw tokenException;
}
« no previous file with comments | « Src/GoogleApis.Auth/OAuth2/Credential.cs ('k') | Src/GoogleApis.Auth/OAuth2/Flows/GoogleAuthorizationCodeFlow.cs » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b