feat(api): аутентификация и авторизация. Кастомные ParrAuthenticationHandler и BaseSimpleRoleProvider.
This commit is contained in:
@@ -5,6 +5,10 @@ namespace PARR.DAL.Services.Interfaces
|
||||
{
|
||||
public interface IHostService : IBaseService<Host>
|
||||
{
|
||||
Task<Host?> GetHostWithAppsAsync(string IP);
|
||||
Task<Host?> GetHostWithAppsAsync(string ip);
|
||||
|
||||
Task<Host?> GetByIpAsync(string ip);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
10
PARR.DAL/Services/Interfaces/IUserService.cs
Normal file
10
PARR.DAL/Services/Interfaces/IUserService.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Services.Interfaces.Base;
|
||||
|
||||
namespace PARR.DAL.Services.Interfaces
|
||||
{
|
||||
public interface IUserService: IBaseService<User>
|
||||
{
|
||||
Task<User?> GetByIpWithRolesAsync(string ipAddress);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user