© Les Jackson 2020
L. JacksonThe Complete ASP.NET Core 3 API Tutorialhttps://doi.org/10.1007/978-1-4842-6255-9_14

14. Securing Our API

Les Jackson1 
(1)
Melbourne, VIC, Australia
 

Chapter Summary

In this chapter we discuss how we can secure our API; specifically, we’ll add the “Bearer” authentication scheme into the mix that will allow only authorized clients to access our API resource through the use of Tokens.

When Done, You Will

  • Understand the Bearer authentication scheme.

  • Use Azure Active Directory to secure our API.

  • Create a simple client that is authorized to use the API.

  • Deploy to Azure.

We have a lot to cover – so let’s get going!

What We’re Building

Our Authentication Use Case

Before delving into the technicalities of our chosen authentication scheme ...

Get The Complete ASP.NET Core 3 API Tutorial: Hands-On Building, Testing, and Deploying now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.