using Microsoft.AspNetCore.Authorization; using System; using System.Collections.Generic; using System.Security.Principal; using System.Text; namespace GreenTree.Maschinenbestellungen.Services.Authorization { public interface IAuthorizationService { /// /// Check wether the user has a specific policy /// /// The user identity. /// The policy to be checked. public bool UserHasPolicy(IIdentity identity, string policy); /// /// Check wether the user has any policy regarding base data management /// /// The user identity. public bool UserHasBasedataPolicy(IIdentity identity); /// /// Check wether the user has any policy in a specific category /// /// The user identity. /// The category (e.g. 'Customer'). public bool UserHasCategoryPolicy(IIdentity identity, string category); } }