9
Building and Securing Web Services Using Minimal APIs
This chapter is about building and securing web services using ASP.NET Core Minimal APIs. This includes implementing techniques to protect a web service from attacks as well as authentication and authorization.
This chapter will cover the following topics:
- Building web services using ASP.NET Core Minimal APIs
- Relaxing the same origin security policy using CORS
- Preventing denial-of-service attacks using rate limiting
- Understanding identity services
Building web services using ASP.NET Core Minimal APIs
In earlier versions of ASP.NET Core, implementing even a simple web service required a lot of boilerplate code. For example, the ASP.NET Core Web API project template in ASP.NET Core 5 implements ...
Get Apps and Services with .NET 7 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.