Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ASP.Net Core 2.0 - Require Authentication
[Authorize]
[Route("api")]
public class ApiController : Controller
{
[HttpGet("Test")]
public IActionResult Test()
{
return Ok("Content secured with Approov Token");
}
// rest of controller goes here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment