LEFT | RIGHT |
(no file at all) | |
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 |
11 distributed under the License is distributed on an "AS IS" BASIS, | 11 distributed under the License is distributed on an "AS IS" BASIS, |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 See the License for the specific language governing permissions and | 13 See the License for the specific language governing permissions and |
14 limitations under the License. | 14 limitations under the License. |
15 */ | 15 */ |
16 | 16 |
17 using System; | 17 using System; |
18 using System.Threading; | 18 using System.Threading; |
19 using System.Threading.Tasks; | 19 using System.Threading.Tasks; |
20 | 20 |
21 using Google.Apis.Auth.OAuth2.Responses; | 21 using Google.Apis.Auth.OAuth2.Responses; |
22 using Google.Apis.Auth.OAuth2.Requests; | 22 using Google.Apis.Auth.OAuth2.Requests; |
23 using Google.Apis.Util; | 23 using Google.Apis.Util; |
24 using Google.Apis.Util.Store; | 24 using Google.Apis.Util.Store; |
25 | 25 |
26 namespace Google.Apis.Auth.OAuth2 | 26 namespace Google.Apis.Auth.OAuth2.Flows |
27 { | 27 { |
28 /// <summary>OAuth 2.0 authorization code flow that manages and persists end
-user credentials.</summary> | 28 /// <summary>OAuth 2.0 authorization code flow that manages and persists end
-user credentials.</summary> |
29 public interface IAuthorizationCodeFlow : IDisposable | 29 public interface IAuthorizationCodeFlow : IDisposable |
30 { | 30 { |
31 /// <summary>Gets the method for presenting the access token to the reso
urce server.</summary> | 31 /// <summary>Gets the method for presenting the access token to the reso
urce server.</summary> |
32 IAccessMethod AccessMethod { get; } | 32 IAccessMethod AccessMethod { get; } |
33 | 33 |
34 /// <summary>Gets the clock.</summary> | 34 /// <summary>Gets the clock.</summary> |
35 IClock Clock { get; } | 35 IClock Clock { get; } |
36 | 36 |
(...skipping 25 matching lines...) Expand all Loading... |
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 } | 71 } |
LEFT | RIGHT |