Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 using System; | |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
4 using System.Net.Http; | |
5 using System.Text; | |
6 | |
7 namespace Google.Apis.Auth.OAuth2 | |
8 { | |
9 /// <summary> | |
10 /// Method of presenting the access token to the resource server as specifie d in· | |
11 /// http://tools.ietf.org/html/rfc6749#section-7 | |
12 /// </summary> | |
13 public interface IAccessMethod | |
14 { | |
15 /// <summary> | |
16 /// Intercepts a HTTP request right before the HTTP request executes by providing the access token. | |
17 /// </summary> | |
18 void Intercept(HttpRequestMessage request, string accessToken); | |
19 | |
20 /// <summary> | |
21 /// Retrieve the original access token in the HTTP request, as provided in the <see cref=" Intercept"/> method. | |
22 /// </summary> | |
23 string GetAccessToken(HttpRequestMessage request); | |
24 } | |
25 } | |
OLD | NEW |