liveBook · Manning

OAuth

As explained in Building Distributed Applications that Work

OAuth is an authorization framework that enables clients to obtain limited access to protected resources without handling the resource owner's credentials.

OAuth handles authorization: deciding whether a user may access a requested resource. It can work alongside OpenID Connect (OIDC), which handles authentication—proving who the user is. For example, a page restricted to administrators requires a permission check, not just a successful login. section 8.1

In single sign-on, a shared identity provider (IdP) supports access across protected applications. The flow obtains an access token after valid credentials are supplied and maintains the session by refreshing the token. OAuth's role in that flow is authorization; it is not the login mechanism. section 8.1 section 8.6

Online-shop access

An online shop needs to know who placed an order and protect accounts from impersonation and payment-card misuse. A Keycloak container acts as the IdP. Once the UI is authenticated, it can pass credentials and permission information to a backend API in a JWT; authorization determines whether access to a requested resource is permitted. section 8.1 section 8.6

How Building Distributed Applications that Work covers it

How deep it goes
Defines OAuth's authorization role and sketches token-based sessions, but defers protocol details.
Examples
Uses an administrator-only page and an online shop whose accounts and orders require protection.
What it assumes
Requires no detailed knowledge of OAuth or OIDC; introduces their roles at a high level.
What you can do after
Evaluate/understand where authorization fits when securing access to an IdP-backed application.
How it connects
Connects OAuth to OIDC, single sign-on, identity providers, access tokens, JWTs, and backend APIs.

Also explained in

Compare how 9 books explain OAuth →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Distributed Applications that Work. The section links point to the parts of the book it draws on.