summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:41:16 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-03 08:41:16 -0800
commit475b47ab8eaa23e064763b05539fa750accebfdc (patch)
tree785a8c82ec1d8884fc51c201c23040923cbfa6fc /src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs
parent74b6b4efd2be2680e3067f716829b0c9385ceebe (diff)
parent1fdcca1a8019189237e86907f220307e2ccd61c9 (diff)
downloadDotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.zip
DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.gz
DotNetOpenAuth-475b47ab8eaa23e064763b05539fa750accebfdc.tar.bz2
Merge branch 'OAuthSimple' into httpclient
Diffstat (limited to 'src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs')
-rw-r--r--src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs b/src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs
index 7763add..e3ee3e8 100644
--- a/src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs
+++ b/src/DotNetOpenAuth.AspNet/Clients/OAuth/IOAuthWebWorker.cs
@@ -10,7 +10,9 @@ namespace DotNetOpenAuth.AspNet.Clients {
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
+ using System.Web;
using DotNetOpenAuth.Messaging;
+ using DotNetOpenAuth.OAuth;
using DotNetOpenAuth.OAuth.Messages;
/// <summary>
@@ -21,23 +23,23 @@ namespace DotNetOpenAuth.AspNet.Clients {
/// Creates an HTTP message handler that authorizes outgoing web requests.
/// </summary>
/// <param name="accessToken">The access token.</param>
- HttpMessageHandler CreateMessageHandler(string accessToken);
+ HttpMessageHandler CreateMessageHandler(AccessToken accessToken);
/// <summary>
/// The process user authorization.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>
- /// The response message.
+ /// The access token, if obtained; otherwise <c>null</c>.
/// </returns>
- Task<AuthorizedTokenResponse> ProcessUserAuthorizationAsync(CancellationToken cancellationToken = default(CancellationToken));
+ Task<AccessTokenResponse> ProcessUserAuthorizationAsync(HttpContextBase context = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// The request authentication.
/// </summary>
/// <param name="callback">The callback.</param>
/// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>The response message</returns>
- Task<HttpResponseMessage> RequestAuthenticationAsync(Uri callback, CancellationToken cancellationToken = default(CancellationToken));
+ /// <returns>The URL to redirect the user agent to.</returns>
+ Task<Uri> RequestAuthenticationAsync(Uri callback, CancellationToken cancellationToken = default(CancellationToken));
}
}