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