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

Unified Diff: Src/GoogleApis.Auth/OAuth2/IAccessMethod.cs

Issue 13632059: Issue 351: Reimplement OAuth2 - Step 2 (Auth PCL - only data types) (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: minor Created 10 years, 10 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
« no previous file with comments | « Src/GoogleApis.Auth/OAuth2/GoogleConsts.cs ('k') | Src/GoogleApis.Auth/OAuth2/IAuthorizationCodeFlow.cs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Src/GoogleApis.Auth/OAuth2/IAccessMethod.cs
===================================================================
new file mode 100644
--- /dev/null
b/Src/GoogleApis.Auth/OAuth2/IAccessMethod.cs
@@ -0,0 1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
namespace Google.Apis.Auth.OAuth2
{
/// <summary>
/// Method of presenting the access token to the resource server as specified in
/// http://tools.ietf.org/html/rfc6749#section-7
/// </summary>
public interface IAccessMethod
{
/// <summary>
/// Intercepts a HTTP request right before the HTTP request executes by providing the access token.
/// </summary>
void Intercept(HttpRequestMessage request, string accessToken);
/// <summary>
/// Retrieve the original access token in the HTTP request, as provided in the <see cref=" Intercept"/> method.
/// </summary>
string GetAccessToken(HttpRequestMessage request);
}
}
« no previous file with comments | « Src/GoogleApis.Auth/OAuth2/GoogleConsts.cs ('k') | Src/GoogleApis.Auth/OAuth2/IAuthorizationCodeFlow.cs » ('j') | no next file with comments »

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