added auth with a simple UI
This commit is contained in:
10
api/OED.Api/Core/Interfaces/Services/ISessionService.cs
Normal file
10
api/OED.Api/Core/Interfaces/Services/ISessionService.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using OED.Api.Core.Models.Eve;
|
||||
|
||||
namespace OED.Api.Core.Interfaces.Services;
|
||||
|
||||
public interface ISessionService
|
||||
{
|
||||
Task<string> CreateAsync(EveSession session);
|
||||
Task<EveSession?> GetAsync(string sessionId);
|
||||
Task DeleteAsync(string sessionId);
|
||||
}
|
||||
9
api/OED.Api/Core/Interfaces/Services/ITokenStore.cs
Normal file
9
api/OED.Api/Core/Interfaces/Services/ITokenStore.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace OED.Api.Core.Interfaces.Services;
|
||||
|
||||
public interface ITokenStore
|
||||
{
|
||||
Task SetAccessTokenAsync(long characterId, string token, TimeSpan expiry);
|
||||
Task<string?> GetAccessTokenAsync(long characterId);
|
||||
Task SetRefreshTokenAsync(long characterId, string token);
|
||||
Task<string?> GetRefreshTokenAsync(long characterId);
|
||||
}
|
||||
Reference in New Issue
Block a user