liveBook · Manning

Authorization code

An authorization code is a short-lived credential issued by an authorization server for a client to exchange for an access token.

How 2 Manning books explain it

Secure APIs

An authorization code is a short-lived credential issued by an authorization server that a client exchanges for an access token.

How it is used
Uses a browser-mediated flow for web applications and confidential clients to obtain access tokens after user consent.
How deep it goes
Explains request parameters, redirects, token exchange, interception risk, and PKCE generation, but does not detail authorization-server internals.
Examples
Uses LinkedIn profile access, Auth0 redirects, FastAPI /login and /token endpoints, and authorization-request URLs.
What you can do after
Implement a login flow that redirects users, receives authorization codes, exchanges them for access tokens, and applies PKCE protection.

Read how Secure APIs explains authorization code →

.NET MAUI in Action

An authorization code is a short-lived credential returned after user authorization that a client exchanges for access and related tokens.

How it is used
Uses the authorization code as the callback credential in a browser-based OAuth2 login for a .NET MAUI application.
How deep it goes
Explains its redirect, extraction, and token-exchange role, but defers the identity provider’s internal exchange process.
Examples
Demonstrates a custom-scheme callback, AuthBrowser parsing, and AuthService configuring OidcClient.
What you can do after
Operate/configure a mobile login callback that returns an authorization code for OidcClient token processing.

Read how .NET MAUI in Action explains authorization code →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.