Chapter 5. Enabling Basic Authentication using Authentication Filter in Web API

This chapter will show how to set an authentication scheme for individual controllers or actions using an Authentication filter that implements the HTTP Basic Authentication scheme and also discuss the advantages and disadvantages of using Basic Authentication.

In this chapter, we will learn the following topics:

  • Basic authentication with IIS
  • Basic authentication with custom membership
  • Basic authentication using an authentication filter
  • Setting an authentication filter
  • Implementing a Web API authentication filter
  • Setting an error result
  • Combining authentication filters with host-level authentication

Basic authentication with IIS

Internet Information Services(IIS) enables ...

Get ASP.NET Web API Security Essentials 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.