Module 05 of 10

Authentication & Authorization

Lessons

About This Module

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.

Lessons

4 videos
01

API Security 101

An introduction to authentication and authorization for APIs: what each one means, how they differ, and why both matter from day one.

02

Every API Authentication Method Explained (Don’t Choose the Wrong One)

A tour of how API authentication evolved, from Basic Authentication and sessions to API keys, bearer tokens, and JWT.

03

API Authentication EXPLAINED! OAuth vs JWT vs API Keys

A comparison of OAuth, JWT, and API keys, explaining when and why to use each method.

04

OAuth 2.0 and OpenID Connect (in plain English)

Nate Barbettini’s plain-English explanation of OAuth 2.0 and OpenID Connect, and how delegated access works.