LEFT | RIGHT |
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 Loading... |
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 access 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> |
| 74 /// <remarks> |
| 75 /// If revoking the token succeeds, the user's credential is removed fro
m the data store and the user MUST |
| 76 /// authorize the application again before the application can access th
e user's private resources. |
| 77 /// </remarks> |
72 /// <param name="userId">User identifier.</param> | 78 /// <param name="userId">User identifier.</param> |
73 /// <param name="token">Access token to be revoked.</param> | 79 /// <param name="token">Access token to be revoked.</param> |
74 /// <param name="taskCancellationToken">Cancellation token to cancel ope
ration.</param> | 80 /// <param name="taskCancellationToken">Cancellation token to cancel ope
ration.</param> |
75 /// <returns><c>true</c> if the token was revoked successfully.</returns
>········ | 81 /// <returns><c>true</c> if the token was revoked successfully.</returns
>········ |
76 Task RevokeTokenAsync(string userId, string token, CancellationToken tas
kCancellationToken); | 82 Task RevokeTokenAsync(string userId, string token, CancellationToken tas
kCancellationToken); |
77 } | 83 } |
78 } | 84 } |
LEFT | RIGHT |