---
title: "Discussion on \"Securing Asp.Net Core Minimal APIs with a custom Middleware\" | Hashnode"
description: "Discussion on \"Securing Asp.Net Core Minimal APIs with a custom Middleware\". In this post we will create a custom middleware to secure a minimal API.\nAuthorization\nTo ensure that client requests access data securely, APIs use authorization. If authentication refers to proving correct identity, authorization refers to allowing..."
url: "https://hashnode.com/posts/securing-aspnet-core-minimal-apis-with-a-custom-middleware/636fdf19ae3150e65b6873a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Securing Asp.Net Core Minimal APIs with a custom Middleware](https://blog.jhonatanoliveira.dev/securing-aspnet-core-minimal-apis-with-a-custom-middleware?utm_source=hashnode&utm_medium=feed)

In this post we will create a custom middleware to secure a minimal API. Authorization To ensure that client requests access data securely, APIs use authorization. If authentication refers to proving correct identity, authorization refers to allowing...

Nov 12, 2022 · 4 min read · blog.jhonatanoliveira.dev  
Updated Feb 8, 2025  
Read the article

-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#middleware](https://hashnode.com/tag/middleware)
-   [#apis](https://hashnode.com/tag/apis)
-   [#authorization](https://hashnode.com/tag/authorization)
-   [#apikey](https://hashnode.com/tag/apikey)

## Written by

[Jhonatan Oliveira](https://hashnode.com/@jhonatanfoliveira)

@jhonatanfoliveira · Montreal, Canada

  
[View profile](https://hashnode.com/@jhonatanfoliveira)

Software Developer | Azure | .Net | Angular | Asp.Net

I am an enthusiastic software developer focusing on C#, .NET, Asp.NET, Azure and Angular.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
