Thinktecture.IdentityModel.Owin.ResourceAuthorization.WebApi by Dominick Baier,Brock Allen

<PackageReference Include="Thinktecture.IdentityModel.Owin.ResourceAuthorization.WebApi" Version="3.0.0" />

 HttpRequestMessageExtensions

public static class HttpRequestMessageExtensions
public static bool CheckAccess(this HttpRequestMessage request, string action, string[] resources)

public static Task<bool> CheckAccessAsync(this HttpRequestMessage request, string action, string[] resources)

public static Task<bool> CheckAccessAsync(this HttpRequestMessage request, IEnumerable<Claim> actions, IEnumerable<Claim> resources)

public static Task<bool> CheckAccessAsync(this HttpRequestMessage request, ResourceAuthorizationContext authorizationContext)