using Microsoft.AspNet.Http;
namespace OAuth.AspNet.AuthServer
{
///
/// Provides context information used when handling OAuth extension grant types.
///
public class OAuthGrantCustomExtensionContext : BaseValidatingTicketContext
{
///
/// Initializes a new instance of the class
///
///
///
///
///
///
public OAuthGrantCustomExtensionContext(HttpContext context, OAuthAuthorizationServerOptions options, string clientId, string grantType, IReadableStringCollection parameters) : base(context, options, null)
{
ClientId = clientId;
GrantType = grantType;
Parameters = parameters;
}
///
/// Gets the OAuth client id.
///
public string ClientId { get; private set; }
///
/// Gets the name of the OAuth extension grant type.
///
public string GrantType { get; private set; }
///
/// Gets a list of additional parameters from the token request.
///
public IReadableStringCollection Parameters { get; private set; }
}
}