© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. FreemanPro ASP.NET Core Identity https://doi.org/10.1007/978-1-4842-6858-2_12

12. Authenticating API Clients

Adam Freeman1  
(1)
London, UK
 
In this chapter, I explain how ASP.NET Core Identity can be used to authenticate API clients using a simple JavaScript application. Some projects can rely on standard ASP.NET Core user authentication for their clients, and I demonstrate how this works. For other projects, I explain how to provide authentication using cookies and using bearer tokens, which are useful for clients that don’t support cookies. Table 12-1 puts API authentication in context.
Table 12-1.

Putting API Authentication in Context

Question

Answer

What ...

Get Pro ASP.NET Core Identity: Under the Hood with Authentication and Authorization in ASP.NET Core 5 and 6 Applications 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.