16  How can I secure my APIs?

16.1 Introduction

(introduction will be written ~last)

16.1.1 Learning Objectives

After you read this chapter, you will be able to:

  • Implement API keys for a plumber API.
  • Implement OAuth2 authentication for a plumber API.
  • Use cookies to save and restore API user state.
  • Set and read encrypted cookies for API users.
  • (Something about things like Posit Connect?)

16.1.2 Prerequisites

(prerequisites will be filled in as I write, if I decide to keep this section)