//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.AspNet.Clients {
using System;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using DotNetOpenAuth.Messaging;
using DotNetOpenAuth.OAuth.Messages;
///
/// The io auth web worker.
///
public interface IOAuthWebWorker {
#region Public Methods and Operators
///
/// The prepare authorized request.
///
/// The profile endpoint.
/// The access token.
/// The cancellation token.
///
/// An HTTP request.
///
Task PrepareAuthorizedRequestAsync(MessageReceivingEndpoint profileEndpoint, string accessToken, CancellationToken cancellationToken = default(CancellationToken));
///
/// The process user authorization.
///
/// The cancellation token.
///
/// The response message.
///
Task ProcessUserAuthorizationAsync(CancellationToken cancellationToken = default(CancellationToken));
///
/// The request authentication.
///
/// The callback.
/// The cancellation token.
/// The response message
Task RequestAuthenticationAsync(Uri callback, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}