A well-shaped API still needs to know who is calling it and what they are allowed to do. This module covers how to protect your endpoints, starting from the basic ideas and moving to the methods used in real-world APIs.
It starts with the difference between authentication (proving who you are) and authorization (deciding what you can access). From there it compares the common approaches: API keys, basic and bearer token authentication, JWTs, and OAuth 2.0 with OpenID Connect, so you can judge which one fits a given API and its consumers.
Watch the lessons in order, then continue on to OpenAPI & Documentation, where you'll learn how to describe your API, including its security schemes, in a way both people and tools can use.
An introduction to authentication and authorization for APIs: what each one means, how they differ, and why both matter from day one.
A tour of how API authentication evolved, from Basic Authentication and sessions to API keys, bearer tokens, and JWT.
A comparison of OAuth, JWT, and API keys, explaining when and why to use each method.
Nate Barbettini’s plain-English explanation of OAuth 2.0 and OpenID Connect, and how delegated access works.