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

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

Issue 94340043: Issue 463: Provide a signout\logout method (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: Gus' comments Created 10 years, 2 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/IAuthorizationCodeFlow.cs
===================================================================
--- a/Src/GoogleApis.Auth/OAuth2/Flows/IAuthorizationCodeFlow.cs
b/Src/GoogleApis.Auth/OAuth2/Flows/IAuthorizationCodeFlow.cs
@@ -67,5 67,18 @@
/// <returns>Token response which contains the access token and the input refresh token.</returns>
Task<TokenResponse> RefreshTokenAsync(string userId, string refreshToken,
CancellationToken taskCancellationToken);
/// <summary>
/// Asynchronously revokes the specified token. This method disconnects the user's account from the OAuth 2.0
/// application. It should be called upon removing the user account from the site.</summary>
/// <remarks>
/// If revoking the token succeeds, the user's credential is removed from the data store and the user MUST
/// authorize the application again before the application can access the user's private resources.
/// </remarks>
/// <param name="userId">User identifier.</param>
/// <param name="token">Access token to be revoked.</param>
/// <param name="taskCancellationToken">Cancellation token to cancel operation.</param>
/// <returns><c>true</c> if the token was revoked successfully.</returns>
Task RevokeTokenAsync(string userId, string token, CancellationToken taskCancellationToken);
}
}
« no previous file with comments | « Src/GoogleApis.Auth/OAuth2/Flows/GoogleAuthorizationCodeFlow.cs ('k') | Src/GoogleApis.Auth/OAuth2/GoogleConsts.cs » ('j') | no next file with comments »

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