using Microsoft.AspNet.Http; namespace OAuth.AspNet.AuthServer { /// /// An event raised after the Authorization Server has processed the request, but before it is passed on to the web application. /// Calling RequestCompleted will prevent the request from passing on to the web application. /// public class OAuthAuthorizeEndpointContext : BaseOAuthEndpointContext { /// /// Creates an instance of this context /// public OAuthAuthorizeEndpointContext(HttpContext context, OAuthAuthorizationServerOptions options, AuthorizeEndpointRequest authorizeRequest) : base(context, options) { AuthorizeRequest = authorizeRequest; } /// /// Gets OAuth authorization request data. /// public AuthorizeEndpointRequest AuthorizeRequest { get; private set; } public bool IsRequestCompleted { get; private set; } public void RequestCompleted() { IsRequestCompleted = true; } } }