Img_0738_large

Kevin Rich

Adding User Claims via API keys in WebApi 2

Adding a Custom Authentication Filter

Scenario

I have an API that I wish to lock down via an API key the user will embed in the request header. We will accomplish this using the WebApi.AuthenticationFilter NuGet package to create a custom AuthenticationFilterAttribute which will check the incoming request header for an "api-key" key and related value.

Project . . .

Read More

July 19, 2016

Archive

Cover image credit: http://whoiskevinrich.com