refactorisation : separation du code serveur d'authentification
This commit is contained in:
30
OAuth.AspNet.AuthServer/OAuthGrantRefreshTokenContext.cs
Normal file
30
OAuth.AspNet.AuthServer/OAuthGrantRefreshTokenContext.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using Microsoft.AspNet.Authentication;
|
||||
using Microsoft.AspNet.Http;
|
||||
|
||||
namespace OAuth.AspNet.AuthServer
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Provides context information used when granting an OAuth refresh token.
|
||||
/// </summary>
|
||||
public class OAuthGrantRefreshTokenContext : BaseValidatingTicketContext<OAuthAuthorizationServerOptions>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OAuthGrantRefreshTokenContext"/> class
|
||||
/// </summary>
|
||||
/// <param name="context"></param>
|
||||
/// <param name="options"></param>
|
||||
/// <param name="ticket"></param>
|
||||
/// <param name="clientId"></param>
|
||||
public OAuthGrantRefreshTokenContext(HttpContext context, OAuthAuthorizationServerOptions options, AuthenticationTicket ticket, string clientId) : base(context, options, ticket)
|
||||
{
|
||||
ClientId = clientId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The OAuth client id.
|
||||
/// </summary>
|
||||
public string ClientId { get; private set; }
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user