using Microsoft.AspNet.Http; using System.Collections.Generic; namespace OAuth.AspNet.AuthServer { /// /// Provides context information used in handling an OAuth resource owner grant. /// public class OAuthGrantResourceOwnerCredentialsContext : BaseValidatingTicketContext { /// /// Initializes a new instance of the class /// /// /// /// /// /// /// public OAuthGrantResourceOwnerCredentialsContext(HttpContext context, OAuthAuthorizationServerOptions options, string clientId, string userName, string password, IList scope) : base(context, options, null) { ClientId = clientId; UserName = userName; Password = password; Scope = scope; } /// /// OAuth client id. /// public string ClientId { get; private set; } /// /// Resource owner username. /// public string UserName { get; private set; } /// /// Resource owner password. /// public string Password { get; private set; } /// /// List of scopes allowed by the resource owner. /// public IList Scope { get; private set; } } }