(Choose 1 answer)
What is the purpose of the authentication middleware in ASP.NET Core Web API?
A. To enable authentication for the web application
B. To map incoming requests to appropriate endpoint handlers
C. To handle incoming HTTP requests and responses
D. To provide role-based authorization