Implement API Key Authentication in ASP.NET Core Web API

preview_player
Показать описание

In this video, I’ll show you different ways to implement API key authentication in the .NET Web API project.
When we use the API key for the authentication, there are Different Ways of Passing it in a Request
We can use:
-Query Parameters
-Request Body
-Request Headers
In this video, I will only use the Headers option to pass the API key to the web API.
Besides the different ways to pass the API key to an endpoint, there are also different approaches to implementing API key authentication in ASP.NET Core. We can use:
-Custom Attribute
-Custom Middleware
-Endpoint filters with minimal APIs and
-Policy-based Authorization
I will show you all these approaches in this video.

LINKS MENTIONED IN THE VIDEO

FOLLOW US ON SOCIAL MEDIA!
Рекомендации по теме
Комментарии
Автор

Thank you all for watching and for your support.

CodeMaze
Автор

This video was a life saver thank you!!!

KeondraLeke-xp
Автор

Awesome video. Can it be possible to pass the api key as bearer tokens on the authorization header instead of the x-api-key header during the request? Thank you

ugochukwuumerie