添加项目文件。
This commit is contained in:
14
TechHelper.Server/Services/IAuthenticationService.cs
Normal file
14
TechHelper.Server/Services/IAuthenticationService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using TechHelper.Context;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using System.Security.Claims;
|
||||
using Entities.Contracts;
|
||||
|
||||
namespace TechHelper.Services
|
||||
{
|
||||
public interface IAuthenticationService
|
||||
{
|
||||
public Task<string> GetToken(User user);
|
||||
public string GenerateRefreshToken();
|
||||
public ClaimsPrincipal GetPrincipalFromExpiredToken(string token);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user