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

Delta Between Two Patch Sets: 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/
Left Patch Set: minor III Created 10 years, 2 months ago
Right Patch Set: Gus' comments Created 10 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 /* 1 /*
2 Copyright 2013 Google Inc 2 Copyright 2013 Google Inc
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License. 5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 CancellationToken taskCancellationToken); 61 CancellationToken taskCancellationToken);
62 62
63 /// <summary>Asynchronously refreshes an access token using a refresh to ken.</summary> 63 /// <summary>Asynchronously refreshes an access token using a refresh to ken.</summary>
64 /// <param name="userId">User identifier.</param> 64 /// <param name="userId">User identifier.</param>
65 /// <param name="refreshToken">Refresh token which is used to get a new access token.</param> 65 /// <param name="refreshToken">Refresh token which is used to get a new access token.</param>
66 /// <param name="taskCancellationToken">Cancellation token to cancel ope ration.</param> 66 /// <param name="taskCancellationToken">Cancellation token to cancel ope ration.</param>
67 /// <returns>Token response which contains the access token and the inpu t refresh token.</returns> 67 /// <returns>Token response which contains the access token and the inpu t refresh token.</returns>
68 Task<TokenResponse> RefreshTokenAsync(string userId, string refreshToken , 68 Task<TokenResponse> RefreshTokenAsync(string userId, string refreshToken ,
69 CancellationToken taskCancellationToken); 69 CancellationToken taskCancellationToken);
70 70
71 /// <summary>Asynchronously revokes the specified token.</summary> 71 /// <summary>
72 /// Asynchronously revokes the specified token. This method disconnects the user's account from the OAuth 2.0
73 /// application. It should be called upon removing the user account from the site.</summary>
72 /// <remarks> 74 /// <remarks>
73 /// If revoking the token have been succeeded, the user's credential is removed from the data store. 75 /// If revoking the token succeeds, the user's credential is removed fro m the data store and the user MUST
class 2014/05/12 18:00:53 If revoking the token succeeds, the user's credent
peleyal 2014/05/12 20:26:34 Let me know, it is OK On 2014/05/12 18:00:53, clas
76 /// authorize the application again before the application can access th e user's private resources.
74 /// </remarks> 77 /// </remarks>
75 /// <param name="userId">User identifier.</param> 78 /// <param name="userId">User identifier.</param>
76 /// <param name="token">Access token to be revoked.</param> 79 /// <param name="token">Access token to be revoked.</param>
77 /// <param name="taskCancellationToken">Cancellation token to cancel ope ration.</param> 80 /// <param name="taskCancellationToken">Cancellation token to cancel ope ration.</param>
78 /// <returns><c>true</c> if the token was revoked successfully.</returns >········ 81 /// <returns><c>true</c> if the token was revoked successfully.</returns >········
79 Task RevokeTokenAsync(string userId, string token, CancellationToken tas kCancellationToken); 82 Task RevokeTokenAsync(string userId, string token, CancellationToken tas kCancellationToken);
80 } 83 }
81 } 84 }
LEFTRIGHT

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