Chapters¶
This textbook is organized into 8 chapters covering 85 concepts across the mountainash-auth-client type-safe multi-provider authentication library.
Chapter Overview¶
- Foundations — Core prerequisites: OAuth protocols, tokens, API keys, Pydantic models, and file security primitives.
- Auth Type System and Basic Types — The AuthSpec base model, discriminated union pattern, and the first five auth type variants.
- Advanced Auth Type Variants — OAuth, cloud provider, and platform-specific auth type variants.
- Auth Dispatch and OAuth 1.0a — Registry-based type dispatch and the three-legged OAuth 1.0a flow.
- OAuth 2.0 Flow — OAuthFlow class with Authorization Code grant, PKCE extension, and token operations.
- Secret Storage — SecretStore protocol and FilesystemStore with YAML serialization, locking, and tombstone semantics.
- Callback Server and Token Errors — LocalCallbackServer for OAuth redirects and typed exceptions for token failures.
- Connection Mixins and Token Lifecycle — OAuth2ConnectionMixin with five-state token lifecycle, end-to-end authorization, and authorization errors.