using Microsoft.AspNetCore.Authorization; using System; using System.Collections.Generic; using System.Security.Principal; using System.Text; namespace GreenTree.Strohrmann.ERP.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); } }