We’ve had some requests recently from customers for some examples to show how to use Approov tokens with an ASP.Net Core 2.0 back end. In this blog I’ll walk you through adding the check to a basic API. It’s really straight forward! Thanks to Jon Hilton forthis great blogwhich formed the basis for this example.
Require Authentication for our API controllers
Configure JWT Auth in startup.cs
We need to add the [Authorize] attribute to get our API to check for some authentication.