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
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; }
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue