Initial import of MaxInventory
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace MaxInventory.Authentication.Abstractions
|
||||
{
|
||||
public interface IAdminGroupSource
|
||||
{
|
||||
Task<IReadOnlyCollection<string>> GetViewGroupsAsync(CancellationToken cancellationToken = default);
|
||||
Task<IReadOnlyCollection<string>> GetEditGroupsAsync(CancellationToken cancellationToken = default);
|
||||
Task<IReadOnlyCollection<string>> GetAdminGroupsAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace MaxInventory.Authentication.Abstractions
|
||||
{
|
||||
public interface IAuthProvider
|
||||
{
|
||||
string Mode { get; }
|
||||
|
||||
AuthenticationBuilder Configure(
|
||||
AuthenticationBuilder builder,
|
||||
IConfiguration configuration
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using MaxInventory.Authentication.Core;
|
||||
using System.Security.Claims;
|
||||
|
||||
namespace MaxInventory.Authentication.Abstractions
|
||||
{
|
||||
public interface IIdentityContextFactory
|
||||
{
|
||||
IdentityContext Create(ClaimsPrincipal principal);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user