| 123456789101112131415161718 |
- 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
- {
- /// <summary>
- /// Check wether the user has a specific policy
- /// </summary>
- /// <param name="identity">The user identity.</param>
- /// <param name="policy">The policy to be checked.</param>
- public bool UserHasPolicy(IIdentity identity, string policy);
- }
- }
|