Add JWT authentication and authorization infrastructure
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
namespace Distribution.Infra.Auth
|
||||
{
|
||||
public interface IScopeAccessService
|
||||
{
|
||||
Task<bool> HasStoreScopeAsync(Guid userId, Guid storeId);
|
||||
Task<bool> HasRouteScopeAsync(Guid userId, Guid routeId);
|
||||
Task<bool> HasRegionScopeAsync(Guid userId, Guid regionId);
|
||||
Task<List<Guid>> GetAccessibleStoreIdsAsync(Guid userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user