refactorisation : separation du code serveur d'authentification
This commit is contained in:
parent
f8eef31fb3
commit
b462350d72
57 changed files with 5452 additions and 108 deletions
33
OAuth.AspNet.AuthServer/OAuthAuthorizeEndpointContext.cs
Normal file
33
OAuth.AspNet.AuthServer/OAuthAuthorizeEndpointContext.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using Microsoft.AspNet.Http;
|
||||
|
||||
namespace OAuth.AspNet.AuthServer
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public class OAuthAuthorizeEndpointContext : BaseOAuthEndpointContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates an instance of this context
|
||||
/// </summary>
|
||||
public OAuthAuthorizeEndpointContext(HttpContext context, OAuthAuthorizationServerOptions options, AuthorizeEndpointRequest authorizeRequest) : base(context, options)
|
||||
{
|
||||
AuthorizeRequest = authorizeRequest;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets OAuth authorization request data.
|
||||
/// </summary>
|
||||
public AuthorizeEndpointRequest AuthorizeRequest { get; private set; }
|
||||
|
||||
public bool IsRequestCompleted { get; private set; }
|
||||
|
||||
public void RequestCompleted()
|
||||
{
|
||||
IsRequestCompleted = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue