{"_self":{"principle":"Self-explaining payload — no external context required. This _self block describes what you are reading and where to look next.","widget":"article_voxels","feature":"voxels","name":"Voxel graph","what":"Claims as atoms, sources as edges (supported_by, posted_by). Per-claim provenance.","contains":"claim voxels + source edges","slug":"oip-what-is-oauth","urls":{"read":"https://miscsubjects.com/api/articles/oip-what-is-oauth/voxels","write":"https://miscsubjects.com/api/protocol/claim"},"how_to_use":"Claims as atoms, sources as edges (supported_by, posted_by). Per-claim provenance.","write":"https://miscsubjects.com/api/protocol/claim","imessage":null,"router_tag":null,"proof_chain":[{"step":1,"claim":"Articles are voxel graphs of tiered claims, not prose blobs.","verify":"https://miscsubjects.com/api/articles/constitution"},{"step":2,"claim":"Claims link to hash-chained sources via source_ids.","verify":"https://miscsubjects.com/api/articles/oip-what-is-oauth/sources"},{"step":3,"claim":"Ask reads topology; ingest/claim append to ledger.","verify":"https://miscsubjects.com/api/protocol"},{"step":4,"claim":"Models queue growth: populate → collaborate → repair → reflex.","verify":"https://miscsubjects.com/api/protocol/grow"},{"step":5,"claim":"Graph proves its own shape (reflex) and $/claim (yield).","verify":"https://miscsubjects.com/graph.html?layer=reflex"},{"step":6,"claim":"Full feature index + _explain on every API response.","verify":"https://miscsubjects.com/api/articles/system-map"}],"related_features":[{"id":"constitution","name":"Article constitution","what":"Binding rules: required article slots, claim/source rules, ontology anti-sprawl.","urls":{"read":"https://miscsubjects.com/api/articles/constitution","read_md":"https://miscsubjects.com/api/articles/constitution?format=markdown"}},{"id":"sources_ledger","name":"Source ledger","what":"Hash-chained cited sources; verify integrity at GET .../sources.","urls":{"read":"https://miscsubjects.com/api/articles/oip-what-is-oauth/sources","write":"https://miscsubjects.com/api/protocol/sources"}},{"id":"claim_post","name":"Claim post protocol","what":"Prompt-injection style POST — one claim voxel with who_claims + posted_by.","urls":{"read":"https://miscsubjects.com/api/articles/oip-what-is-oauth/voxels","write":"https://miscsubjects.com/api/protocol/claim"}}],"system_map":"https://miscsubjects.com/api/articles/system-map","system_map_markdown":"https://miscsubjects.com/api/articles/system-map?format=markdown","not_medical_advice":true},"_explain":{"feature":"voxels","name":"Voxel graph","what":"Claims as atoms, sources as edges (supported_by, posted_by). Per-claim provenance.","why":"Every feature is auditable collective intelligence","how":"Claims as atoms, sources as edges (supported_by, posted_by). Per-claim provenance.","model":null,"verifies":null,"urls":{"read":"https://miscsubjects.com/api/articles/oip-what-is-oauth/voxels","write":"https://miscsubjects.com/api/protocol/claim"},"imessage":null,"router":null,"related":[{"id":"constitution","what":"Binding rules: required article slots, claim/source rules, ontology anti-sprawl."},{"id":"sources_ledger","what":"Hash-chained cited sources; verify integrity at GET .../sources."},{"id":"claim_post","what":"Prompt-injection style POST — one claim voxel with who_claims + posted_by."}],"not_medical_advice":true},"position":{"you_are_here":"https://miscsubjects.com/a/oip-what-is-oauth — What Is OAuth","plane":"oip","master_entry":"https://miscsubjects.com/a/philosophy","siblings":[{"slug":"oip-appendix-b-the-benchmark","title":"APPENDIX B — The Benchmark","url":"https://miscsubjects.com/a/oip-appendix-b-the-benchmark"},{"slug":"oip-appendix-c-attack-types","title":"APPENDIX C — Attack Types","url":"https://miscsubjects.com/a/oip-appendix-c-attack-types"},{"slug":"oip-axiom-a0","title":"Axiom A0 — Inversion","url":"https://miscsubjects.com/a/oip-axiom-a0"},{"slug":"oip-axiom-a1","title":"Axiom A1 — Polarity","url":"https://miscsubjects.com/a/oip-axiom-a1"},{"slug":"oip-axiom-a2","title":"Axiom A2 — The Grain","url":"https://miscsubjects.com/a/oip-axiom-a2"},{"slug":"oip-axiom-a3","title":"Axiom A3 — Convergence","url":"https://miscsubjects.com/a/oip-axiom-a3"},{"slug":"oip-axiom-a4","title":"Axiom A4 — The First Assumption","url":"https://miscsubjects.com/a/oip-axiom-a4"},{"slug":"oip-axiom-a5","title":"Axiom A5 — Inherited Prejudice","url":"https://miscsubjects.com/a/oip-axiom-a5"},{"slug":"oip-axiom-a6","title":"Axiom A6 — The Void","url":"https://miscsubjects.com/a/oip-axiom-a6"},{"slug":"oip-axiom-a7","title":"Axiom A7 — Signatures","url":"https://miscsubjects.com/a/oip-axiom-a7"},{"slug":"oip-axiom-a8","title":"Axiom A8 — Maker-System Identity","url":"https://miscsubjects.com/a/oip-axiom-a8"},{"slug":"oip-axiom-a8-times-a5","title":"A8 × A5 — Maker-System Identity Prosecuted Against Inherited Prejudice","url":"https://miscsubjects.com/a/oip-axiom-a8-times-a5"},{"slug":"oip-axiom-a9","title":"Axiom A9 — Interlock","url":"https://miscsubjects.com/a/oip-axiom-a9"},{"slug":"oip-axiom-hierarchy","title":"Axiom Hierarchy — Bedrock vs Derived","url":"https://miscsubjects.com/a/oip-axiom-hierarchy"},{"slug":"oip-c07-feedback-cybernetics","title":"C07: Feedback, Cybernetics, and Homeostasis","url":"https://miscsubjects.com/a/oip-c07-feedback-cybernetics"},{"slug":"oip-catalogue-ai-instance","title":"The Catalogue: AI as an Instance","url":"https://miscsubjects.com/a/oip-catalogue-ai-instance"},{"slug":"oip-catalogue-build-order","title":"The Catalogue: Build Order","url":"https://miscsubjects.com/a/oip-catalogue-build-order"},{"slug":"oip-catalogue-edge-types","title":"The Catalogue: Edge Types","url":"https://miscsubjects.com/a/oip-catalogue-edge-types"},{"slug":"oip-catalogue-mapping","title":"The Catalogue: Mapping Invariants to Protocol","url":"https://miscsubjects.com/a/oip-catalogue-mapping"},{"slug":"oip-catalogue-node-facets","title":"The Catalogue: Node Facets","url":"https://miscsubjects.com/a/oip-catalogue-node-facets"},{"slug":"oip-catalogue-one-rule","title":"The Catalogue: The One Rule","url":"https://miscsubjects.com/a/oip-catalogue-one-rule"},{"slug":"oip-catalogue-religion-lineage","title":"The Catalogue: Religion Without Religion Lineage","url":"https://miscsubjects.com/a/oip-catalogue-religion-lineage"},{"slug":"oip-catalogue-traversal","title":"The Catalogue: Traversal","url":"https://miscsubjects.com/a/oip-catalogue-traversal"},{"slug":"oip-causal-contact-rule","title":"Causal Contact Rule — Convergence vs Synthesis","url":"https://miscsubjects.com/a/oip-causal-contact-rule"},{"slug":"oip-cold-read-reflexes","title":"The Cold-Read Reflexes: Why Stateless Models Misjudge This Corpus on Arrival","url":"https://miscsubjects.com/a/oip-cold-read-reflexes"},{"slug":"oip-convergence-build-order","title":"Convergence Catalogue: Build Order","url":"https://miscsubjects.com/a/oip-convergence-build-order"},{"slug":"oip-convergence-catalogue","title":"The Convergence Catalogue — Nodes of Evidence","url":"https://miscsubjects.com/a/oip-convergence-catalogue"},{"slug":"oip-convergence-edge-1","title":"Convergence Edge 1: Gradient Dissipation ↔ Thermoeconomics","url":"https://miscsubjects.com/a/oip-convergence-edge-1"},{"slug":"oip-convergence-edge-10","title":"Convergence Edge 10: Symmetry-Breaking ↔ Attractors","url":"https://miscsubjects.com/a/oip-convergence-edge-10"},{"slug":"oip-convergence-edge-2","title":"Convergence Edge 2: Least Action ↔ Pareto Optimization","url":"https://miscsubjects.com/a/oip-convergence-edge-2"},{"slug":"oip-convergence-edge-3","title":"Convergence Edge 3: Symmetry ↔ Conservation ↔ Duality / Complementarity","url":"https://miscsubjects.com/a/oip-convergence-edge-3"},{"slug":"oip-convergence-edge-4","title":"Convergence Edge 4: Criticality ↔ Scale Invariance","url":"https://miscsubjects.com/a/oip-convergence-edge-4"},{"slug":"oip-convergence-edge-5","title":"Convergence Edge 5: Information / Entropy ↔ Recursion / Self-Reference","url":"https://miscsubjects.com/a/oip-convergence-edge-5"},{"slug":"oip-convergence-edge-6","title":"Convergence Edge 6: Feedback ↔ Autopoiesis","url":"https://miscsubjects.com/a/oip-convergence-edge-6"},{"slug":"oip-convergence-edge-7","title":"Convergence Edge 7: Selection ↔ Emergence","url":"https://miscsubjects.com/a/oip-convergence-edge-7"},{"slug":"oip-convergence-edge-8","title":"Convergence Edge 8: Scale Invariance ↔ Networks","url":"https://miscsubjects.com/a/oip-convergence-edge-8"},{"slug":"oip-convergence-edge-9","title":"Convergence Edge 9: Branching ↔ Networks","url":"https://miscsubjects.com/a/oip-convergence-edge-9"},{"slug":"oip-convergence-public-article","title":"Convergence Catalogue: Public Article","url":"https://miscsubjects.com/a/oip-convergence-public-article"},{"slug":"oip-convergence-schema","title":"Convergence Catalogue: The Schema","url":"https://miscsubjects.com/a/oip-convergence-schema"},{"slug":"oip-count-discipline","title":"Count Discipline — A11 Applied to Philosophy Prose","url":"https://miscsubjects.com/a/oip-count-discipline"}],"machine_side":"https://miscsubjects.com/api/articles/oip-what-is-oauth/voxels","discourse":"https://miscsubjects.com/api/articles/oip-what-is-oauth/discourse","append_protocol":"https://miscsubjects.com/a/append-protocol","protocol_door":"https://miscsubjects.com/api/protocol"},"slug":"oip-what-is-oauth","div_mode":true,"voxel":{"mode":"div","divided_at":"2026-07-17T02:36:51.275Z","divided_by":"owner","original_body_sha":"a774416387cd48f81e202a20d62fa0a93f608731162f9f3436115fb0e32b65f8","atoms":33,"version":1},"divs":[{"id":"d1","kind":"p","type":null,"order":1,"text":"**OAuth is an authorization protocol. It lets one service access another's resources without ever seeing the user's password. It replaces trust with tokens, and secrets with scopes.**","status":"active","vx_hash":"61a66961b55e4c074eee07352cc38aff16fa80a1aeb8e72129e1b1b179bc719a","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"887e1aab52951a6ea38364202c4c4fd960ee48891730c938a0c48890ba18c483","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"74d9841300a4cb94cbb406644f9b2ed606f7c3a1aeac24b6ad6343b1487d22d9","detail":{"divided_from":"body","block":1,"kind":"p"},"prev":"genesis","hash":"887e1aab52951a6ea38364202c4c4fd960ee48891730c938a0c48890ba18c483"}],"claim_ids":["c1"],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d1"},{"id":"d2","kind":"h","type":null,"order":2,"text":"## Why It Matters","status":"active","vx_hash":"8d0bb07db43ae564b4aa602a35cbcf2da8d2c54364ac6d9bba98fe5f56fd81a6","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"ce927b91c7bbd1512661241b047426f7bdc5b57eb3a4eaa00497dcf9234387f6","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"a4fa37f6007aebb1ca3f8598714390d729b67c76a7be5e38b2a60424c0e63bb4","detail":{"divided_from":"body","block":2,"kind":"h"},"prev":"genesis","hash":"ce927b91c7bbd1512661241b047426f7bdc5b57eb3a4eaa00497dcf9234387f6"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d2"},{"id":"d3","kind":"p","type":null,"order":3,"text":"Passwords are a catastrophe. Users reuse them. Services store them in hashes that leak. When Site A needs Site B's data, asking for the user's password is a betrayal — of the user, and of both services. OAuth ends that. It introduces a third object: the token. The token carries permission, not identity. It expires. It can be revoked. It can be scoped to a single action. This is not a convenience. It is a structural shift from shared secrets to delegated authority. It makes the web composable. One service builds on another without owning the user's credentials. That is the practical importance. The philosophical importance is deeper: OAuth enforces the principle of least privilege. You get exactly the access you asked for, no more. No implicit trust. No ambient authority. Every permission is explicit, bounded, and auditable. That is the foundation of any system that claims to be open.","status":"active","vx_hash":"e070fc35a2be737cd00d7582bc9874aef6db2c95cec36691fd025f0f33340059","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"b30c700fddcbf3ce1cc4d0b5fe64e984f07aa98984063ece7b6d597c2240437f","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"73e069cfdab2ced2eccb6cd76afeb6060ae0efe9ab4e25bb4fddbef742c911b3","detail":{"divided_from":"body","block":3,"kind":"p"},"prev":"genesis","hash":"b30c700fddcbf3ce1cc4d0b5fe64e984f07aa98984063ece7b6d597c2240437f"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d3"},{"id":"d4","kind":"h","type":null,"order":4,"text":"## How It Works","status":"active","vx_hash":"48ae217620a4594a15903153153013d23d6b498779eb7a5da6abcd3fd1248267","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"ac7f7777e59a6e7edec875fc04684d9b977e25b63f0911aa7b54dbf00660d285","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"f029fb0d33f0802e53458729c7a20710b671d86867fd9cb957609a4af8aee229","detail":{"divided_from":"body","block":4,"kind":"h"},"prev":"genesis","hash":"ac7f7777e59a6e7edec875fc04684d9b977e25b63f0911aa7b54dbf00660d285"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d4"},{"id":"d5","kind":"p","type":null,"order":5,"text":"OAuth 2.0 has four roles: the Resource Owner (the user), the Client (the app requesting access), the Authorization Server (the token issuer), and the Resource Server (the API holding the data).","status":"active","vx_hash":"c4e7e1b96efd81290dbebb7f99c1610fd29a9c59101db6431f4bc18651bced51","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"9098eee144941d28128a6b32fe1327384a5bd6bf9358f52eae52eb62fae2ba3e","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"7bb68c0262ba848ecbbd3c11c868ede6a4cff4b685e4f6f238b12cfdaefdd46e","detail":{"divided_from":"body","block":5,"kind":"p"},"prev":"genesis","hash":"9098eee144941d28128a6b32fe1327384a5bd6bf9358f52eae52eb62fae2ba3e"}],"claim_ids":["c2"],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d5"},{"id":"d6","kind":"p","type":null,"order":6,"text":"Step one: the Client asks the Resource Owner for authorization. It does this by redirecting the user's browser to the Authorization Server with a request that includes a client ID, a redirect URI, and a list of scopes. The client ID is public. It identifies the app. The scopes are the permissions: `read:profile`, `write:posts`, `delete:account`. Each scope is a string. The Authorization Server shows the user what the Client wants. The user approves or denies.","status":"active","vx_hash":"f564c4520053c3dfff91a755c64f60211d9368795667beee255d340167e5b421","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"8a251cee3e4b7ce1ba1c6319623eaa4eb4b02e75095151a07058f9404043f5b5","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"403316d2a1a0785066a3243d30068c54a109620e6b8b14e485351e8b53046c75","detail":{"divided_from":"body","block":6,"kind":"p"},"prev":"genesis","hash":"8a251cee3e4b7ce1ba1c6319623eaa4eb4b02e75095151a07058f9404043f5b5"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d6"},{"id":"d7","kind":"p","type":null,"order":7,"text":"Step two: if the user approves, the Authorization Server redirects the browser back to the Client's redirect URI with an authorization code. This code is single-use, short-lived, and bound to the client ID and redirect URI that started the flow. It proves the user said yes, but it is not a token.","status":"active","vx_hash":"e2755c823dc780df9c7ce36f1525871fee1a35b1652f2c063c736ff8c774a679","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"41b2d4bc055a329c8e4414bc3d11ebd8673fea3703d2058ae08644f61fb29fa0","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"bb23a1c3ebeadf6dcd78dc839b6cb1b3d330fbbbb89625e06b948c59a274be77","detail":{"divided_from":"body","block":7,"kind":"p"},"prev":"genesis","hash":"41b2d4bc055a329c8e4414bc3d11ebd8673fea3703d2058ae08644f61fb29fa0"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d7"},{"id":"d8","kind":"p","type":null,"order":8,"text":"Step three: the Client sends the authorization code to the Authorization Server's token endpoint, along with its client secret. The client secret is private. It never travels in the browser. The Authorization Server validates the code, the secret, and the redirect URI. If all match, it returns an access token and a refresh token. The access token is a bearer token. Whoever holds it can use it. The refresh token is for obtaining new access tokens when the old one expires. The refresh token is typically longer-lived and must be stored securely.","status":"active","vx_hash":"228e3a0ea82d19411238d6d5610561ec2d55801e20f1d0486882dbd60eb40e7a","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"1043766e0225cd969b4f236b6688236188801988abce85daf69c9773303ced8d","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"36894a32ba7d8fcd6902ca6bffaa366758b7ed923081dfbc7b1b806ed3bc150c","detail":{"divided_from":"body","block":8,"kind":"p"},"prev":"genesis","hash":"1043766e0225cd969b4f236b6688236188801988abce85daf69c9773303ced8d"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d8"},{"id":"d9","kind":"p","type":null,"order":9,"text":"Step four: the Client sends the access token to the Resource Server on every API request, usually in the `Authorization: Bearer <token>` header. The Resource Server validates the token — by signature if it is a JWT, or by introspection if it is opaque — and returns the requested resource. If the token is expired, the Client uses the refresh token to get a new one. If the token is revoked, the request fails.","status":"active","vx_hash":"a93478c303c0a895677042765ce3dca49c8c77b3db4353a5bb9fc29be1e88770","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"515a0c907fd00bd80a62e904ed39300559c2eddeadf3378f3769f970ad31a657","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"35767e431f2ebf96e4589c6060e2ce1fb9239100f77ce64e6446171f1ddb7aeb","detail":{"divided_from":"body","block":9,"kind":"p"},"prev":"genesis","hash":"515a0c907fd00bd80a62e904ed39300559c2eddeadf3378f3769f970ad31a657"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d9"},{"id":"d10","kind":"p","type":null,"order":10,"text":"The flow above is the Authorization Code grant, the most common and the most secure for server-side apps. Other grants exist: Implicit (deprecated, for SPAs without a backend), Client Credentials (machine-to-machine, no user), and Device Code (for TVs and hardware without browsers). Each solves a specific constraint. Each trades security for convenience. The Authorization Code grant with PKCE (Proof Key for Code Exchange) is the modern standard for mobile and SPA apps. It removes the need for a client secret by adding a code verifier: a random string hashed and sent in the initial request, then verified in the token exchange. This prevents authorization code interception attacks on mobile devices.","status":"active","vx_hash":"ac53d451fffcbaf2426e0c098384e0b5949c643e22251bff28deb739299aa607","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"85ff79674380861f718b05a87692b8025eff084b3c3781669ce65ddbdbfb428d","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"d864fbbe9bdaaca9788803c2d7a7fb565f3a72dfe4fd2da1c497a86bae497672","detail":{"divided_from":"body","block":10,"kind":"p"},"prev":"genesis","hash":"85ff79674380861f718b05a87692b8025eff084b3c3781669ce65ddbdbfb428d"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d10"},{"id":"d11","kind":"h","type":null,"order":11,"text":"## The Contract","status":"active","vx_hash":"72719900d7c83e53d2fcc301057d654dc625d91287da8afe458243325dc99929","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"b9da63c83bf45985c147d4ede60119fe0e077dccd3cb5231af2b9c5abe3abfa1","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"0cd93563460fd113091079213702fcf7de22a6f656d6e92aab843a96d23bc7cc","detail":{"divided_from":"body","block":11,"kind":"h"},"prev":"genesis","hash":"b9da63c83bf45985c147d4ede60119fe0e077dccd3cb5231af2b9c5abe3abfa1"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d11"},{"id":"d12","kind":"p","type":null,"order":12,"text":"The protocol is a set of HTTP endpoints and JSON payloads. The Authorization Endpoint is a GET request. Parameters: `response_type=code`, `client_id`, `redirect_uri`, `scope`, `state`. The `state` parameter is a random string used to prevent CSRF attacks. The client must verify it matches on the return.","status":"active","vx_hash":"b9ec9d53ae32b2819a2d5d00e1a72718058b80794256d808b7d7eef4fb38d521","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"52fcbe0c2046af5ff150bd2cd1592999f5cfa7c744417834edcd0ff3a2011503","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"8701bc59288fda2e1bb7b8de1a85af2826dc687848f2c0c905461d90cbb169de","detail":{"divided_from":"body","block":12,"kind":"p"},"prev":"genesis","hash":"52fcbe0c2046af5ff150bd2cd1592999f5cfa7c744417834edcd0ff3a2011503"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d12"},{"id":"d13","kind":"p","type":null,"order":13,"text":"The Token Endpoint is a POST request. Content-Type: `application/x-www-form-urlencoded`. Parameters: `grant_type=authorization_code`, `code`, `redirect_uri`, `client_id`, `client_secret`. Response: a JSON object with `access_token`, `token_type` (always `Bearer`), `expires_in` (seconds), `refresh_token` (optional), and `scope` (the granted scopes, which may be a subset of the requested scopes).","status":"active","vx_hash":"3e93d8250a1e9df0d50bd59895e5dcf6874f6cc3dd56f53dc3476e6ad94bb8aa","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"795657fc34dac611b412c749a7794e01deeb31a437a6034dc1abc319d332653b","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"4cfbf72eab598981307a11b7da109f7d07016217cdc832bd8b91fc0d0e41ef8c","detail":{"divided_from":"body","block":13,"kind":"p"},"prev":"genesis","hash":"795657fc34dac611b412c749a7794e01deeb31a437a6034dc1abc319d332653b"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d13"},{"id":"d14","kind":"p","type":null,"order":14,"text":"The Resource Endpoint is a standard API. The access token travels in the `Authorization: Bearer <token>` header. The Resource Server responds with 200 and the resource, or 401 if the token is missing or invalid, or 403 if the token is valid but lacks the required scope.","status":"active","vx_hash":"9a18682bbc97d81c61da7855418f039aaf6e8148ed8668a633d0879da7fb30e7","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"5110fcdb859b6a11826c142be08404156c0526887df5cadfe6b77777604c60e8","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"a900605e08eae573e3f79d0f56102129f9047eaa548e1a1fe554b839307d9d42","detail":{"divided_from":"body","block":14,"kind":"p"},"prev":"genesis","hash":"5110fcdb859b6a11826c142be08404156c0526887df5cadfe6b77777604c60e8"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d14"},{"id":"d15","kind":"p","type":null,"order":15,"text":"Tokens are opaque to the Client. The Client does not parse them. It presents them. The Resource Server decides what they mean. If the token is a JWT, it contains claims: `sub` (subject, the user ID), `iss` (issuer), `aud` (audience, the Resource Server), `exp` (expiration), `iat` (issued at), `scope` (the granted permissions). The Resource Server validates the signature against the Authorization Server's public key. It rejects tokens with bad signatures, expired `exp`, or mismatched `aud`.","status":"active","vx_hash":"a60004af38328b02c50baef4f8d603b8eb9cd10c61e1d4ae4780fea0ec59aac5","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"3583654ab0e48f7d04a62073e6d6ac1e960ab63c6db47fa0bc4b20fff15de349","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"c6c80062cc421db93d3ad95dd110ceb24dfc36f537e8aca4a5e5b29bfa16909d","detail":{"divided_from":"body","block":15,"kind":"p"},"prev":"genesis","hash":"3583654ab0e48f7d04a62073e6d6ac1e960ab63c6db47fa0bc4b20fff15de349"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d15"},{"id":"d16","kind":"h","type":null,"order":16,"text":"## Real Examples","status":"active","vx_hash":"465fc380924735e34e1c197762d1848dcf228f2118af198eb79fda564bdb20f6","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"114baad018460405cdb5a1d7ee7f9e7c410ae7a8cbf27033688728dab3bd4c12","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"e117cb4e562f13d43f7070785d002a44b2ac990a268aba794448b69670234942","detail":{"divided_from":"body","block":16,"kind":"h"},"prev":"genesis","hash":"114baad018460405cdb5a1d7ee7f9e7c410ae7a8cbf27033688728dab3bd4c12"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d16"},{"id":"d17","kind":"p","type":null,"order":17,"text":"**GitHub OAuth Apps.** A developer wants to build a CI dashboard that shows the user's repositories and recent commits. The dashboard redirects the user to `github.com/login/oauth/authorize` with `client_id` and `scope=repo`. The user approves. GitHub redirects back with a code. The dashboard exchanges the code for a token using `client_id`, `client_secret`, and the code. The token has `repo` scope. The dashboard calls `api.github.com/user/repos` with `Authorization: Bearer <token>`. GitHub returns the repositories. The dashboard never sees the user's GitHub password.","status":"active","vx_hash":"a97beecf83ed132e33ea27531b376c0c0287cdf8a20941809a912ce9988a9364","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"75eae3a0a15ee14133b9bc8b5e58928b88587424cdf4ac786b73061c819baeac","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"fc2817bfdb87236740eaabd57262ec923fd792dc4ded23401b9520233819cd62","detail":{"divided_from":"body","block":17,"kind":"p"},"prev":"genesis","hash":"75eae3a0a15ee14133b9bc8b5e58928b88587424cdf4ac786b73061c819baeac"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d17"},{"id":"d18","kind":"p","type":null,"order":18,"text":"**Google Sign-In.** A third-party app wants to let users sign in with Google. It redirects to `accounts.google.com/o/oauth2/v2/auth` with `scope=openid profile email`. The user approves. Google returns an authorization code. The app exchanges it for an access token and an ID token. The ID token is a JWT containing the user's `sub`, `email`, `name`, and `picture`. The app validates the ID token's signature against Google's public keys and uses the claims to create or authenticate a local user account. The access token lets the app call Google APIs like Calendar or Drive if the user granted those scopes.","status":"active","vx_hash":"2082da48a5c2c2183ced6caf0d65c39e62574f7e43fa90cfe53970f6102430bd","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"d597619ecc1092137dffe03fdb06c2e01f56c08dc9bc4e120405d25045e341af","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"bb586880a4eda0f91e691c1769e54e10784e73291306a0a6749114bb6d92b5da","detail":{"divided_from":"body","block":18,"kind":"p"},"prev":"genesis","hash":"d597619ecc1092137dffe03fdb06c2e01f56c08dc9bc4e120405d25045e341af"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d18"},{"id":"d19","kind":"p","type":null,"order":19,"text":"**Slack Apps.** A team installs a Slack app. The app requests `scope=chat:write:bot,channels:read`. The team admin approves. Slack returns an access token to the app's backend. The token is stored server-side. The app uses it to post messages to channels and read channel listings. If the admin revokes the app in Slack's settings, the token becomes invalid. The next API call returns 401. The app cannot post anymore. The admin never shared a password.","status":"active","vx_hash":"8ee3e95bff63cc82a7aafa5c1dd082e81f78cc35a0aa7f5cef665319818a42ea","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"8e05e79ab9aac3570ad76307d70da62f4ac0674e9d49311f59e72ed786e19445","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"be03745f03c56dea08b138b7d86dad460f9f2383db8f2dc913824972a3dc1453","detail":{"divided_from":"body","block":19,"kind":"p"},"prev":"genesis","hash":"8e05e79ab9aac3570ad76307d70da62f4ac0674e9d49311f59e72ed786e19445"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d19"},{"id":"d20","kind":"p","type":null,"order":20,"text":"**Stripe Connect.** A marketplace wants to pay sellers. It redirects sellers to Stripe's OAuth flow with `scope=read_write`. The seller connects their Stripe account. Stripe returns an access token that represents the seller's account. The marketplace stores the token and uses it to create charges on the seller's behalf. The token is scoped to the seller's account. The marketplace cannot access other sellers' data. The seller can revoke access in their Stripe dashboard. The token dies. The marketplace loses access. No password was ever exchanged.","status":"active","vx_hash":"de68791378e678062d2c0832ecf7b68228ced985df7a3061e81fc69c2b462a3c","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"128214d8058cd8e979c67e0dd270aa8328f0d66f370743b2a4b7f4eaca420592","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"ba8d844c9d4ec2b20a5527a6dabd935bd48851195a051317e159da4ca653b4e4","detail":{"divided_from":"body","block":20,"kind":"p"},"prev":"genesis","hash":"128214d8058cd8e979c67e0dd270aa8328f0d66f370743b2a4b7f4eaca420592"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d20"},{"id":"d21","kind":"p","type":null,"order":21,"text":"**Apple Sign In.** An iOS app wants to authenticate users without creating a password system. It uses the Authorization Code grant with PKCE. The app generates a code verifier (a random 128-character string) and a code challenge (SHA256 of the verifier, base64url-encoded). It sends the challenge to Apple's authorization endpoint. Apple redirects back with a code. The app sends the code plus the original verifier to Apple's token endpoint. Apple hashes the verifier and checks it against the challenge. If they match, Apple returns the tokens. The verifier never leaves the device. An attacker who intercepts the authorization code cannot exchange it without the verifier.","status":"active","vx_hash":"07f37e916cc8909f8385e6ecf122ac20a11d2c84e0374757c1349a363c2370e5","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"bb3eea209a3e29fcdcd680e2c6ca02eee1a7a34456e854f777a67de911bc5b66","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"289625b367f45f7e52e995fe565d765d856ffe8b12e13dde82d5e41c65928f11","detail":{"divided_from":"body","block":21,"kind":"p"},"prev":"genesis","hash":"bb3eea209a3e29fcdcd680e2c6ca02eee1a7a34456e854f777a67de911bc5b66"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d21"},{"id":"d22","kind":"h","type":null,"order":22,"text":"## Common Mistakes","status":"active","vx_hash":"3322b72d41e401eb3ef1189465e4a2c30c438406d880850c0c60ebc9e7dd9ee3","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"ee43a8921ed118e5a77571b8520293c1e90acd778ac8663eaa66895b03138efd","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"4e22ff0650f89ac59711e7d297d6068e6b0e8cd8e48fdd7a716f26d37acb2d34","detail":{"divided_from":"body","block":22,"kind":"h"},"prev":"genesis","hash":"ee43a8921ed118e5a77571b8520293c1e90acd778ac8663eaa66895b03138efd"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d22"},{"id":"d23","kind":"p","type":null,"order":23,"text":"Developers store the client secret in mobile apps. The client secret is not secret on a device. Anyone can extract it. Mobile apps must use PKCE and omit the client secret entirely.","status":"active","vx_hash":"ba7e760c3c1c32ba8e9f84f61b9c7a3adbca78de1190bea1dd476ba6e8a12bf6","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"c1262bdb3eeb56a685dd987627b480c704c6bf5cfcaa677928b1eff171033ece","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"7cba2adcb411c3d2ffda9ba0f5755e40a38de4dae2e170f1ed714cd31353fe69","detail":{"divided_from":"body","block":23,"kind":"p"},"prev":"genesis","hash":"c1262bdb3eeb56a685dd987627b480c704c6bf5cfcaa677928b1eff171033ece"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d23"},{"id":"d24","kind":"p","type":null,"order":24,"text":"Developers send tokens in URLs. URLs end up in logs, browser history, and referrer headers. Tokens must travel in headers or POST bodies. Never in query strings.","status":"active","vx_hash":"e035fa4e7193a977bd470929ebc2c6869aa738c11b55effc400328cdae5b7b12","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"3e078daf4ba2b1b5f22c1c2f60e20507b3f1a336abcbd3dec0f85ee1037d6238","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"a8d554453225883ce975935182b3bd730a26ebd301a3c8722b3d29ed08ac1bb7","detail":{"divided_from":"body","block":24,"kind":"p"},"prev":"genesis","hash":"3e078daf4ba2b1b5f22c1c2f60e20507b3f1a336abcbd3dec0f85ee1037d6238"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d24"},{"id":"d25","kind":"p","type":null,"order":25,"text":"Developers skip the `state` parameter. Without `state`, an attacker can craft a login link that redirects the user to the attacker's account after the OAuth flow. The app thinks the user is the attacker. This is a session fixation attack. Always validate `state`.","status":"active","vx_hash":"1e5d2ec1f84fc5b8d024ed09fb7cdda30364f936ff170ef2a0ea733eb7b8b54a","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"4bbc8426a402732f2d19f8d85542d4bf374edab6bca7298a1a17f79a83f4d3dd","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"11ad70e4e075954a290a82859a38909d25a5b73990c27d949feff1bbbdf69057","detail":{"divided_from":"body","block":25,"kind":"p"},"prev":"genesis","hash":"4bbc8426a402732f2d19f8d85542d4bf374edab6bca7298a1a17f79a83f4d3dd"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d25"},{"id":"d26","kind":"p","type":null,"order":26,"text":"Developers request more scopes than they need. Each scope is a liability. If your app leaks, the attacker gets every scope you requested. Request the minimum. If you need more later, re-authorize.","status":"active","vx_hash":"1d7b69e6780e1989a4e100be3877368f6c59c5f7ca67ef4b73cde1c779371819","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"f420ad436a96247f09a51bfc0ee3cc6d6cddde40555c1ed4b835e34c8641fe3b","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"7ae25c82b226d4e1029caf898f5c1e1ada94c11153f77a5d9d7e8a28879cf68b","detail":{"divided_from":"body","block":26,"kind":"p"},"prev":"genesis","hash":"f420ad436a96247f09a51bfc0ee3cc6d6cddde40555c1ed4b835e34c8641fe3b"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d26"},{"id":"d27","kind":"p","type":null,"order":27,"text":"Developers treat the access token as a session token. It is not. It is an authorization credential for a specific set of APIs. Session management is a separate concern. Do not put user identity in a session token and call it OAuth. Use an ID token for identity, an access token for authorization.","status":"active","vx_hash":"34e5c430743e6d3bc16da1be7234c3ae373858802a94d07079d1b7256e62d353","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"05ac0bc24246eee582d89226d8aaad3327f4da57fd8a1e4c4891011197f71a15","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"9dc84a17974b924942f1c47a300a87e981f3bdd75d86ca9c2174144c0ba794de","detail":{"divided_from":"body","block":27,"kind":"p"},"prev":"genesis","hash":"05ac0bc24246eee582d89226d8aaad3327f4da57fd8a1e4c4891011197f71a15"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d27"},{"id":"d28","kind":"p","type":null,"order":28,"text":"Developers build their own OAuth server. OAuth is a protocol, not a library. Implementing it correctly requires handling token rotation, revocation, scope validation, JWT signing, key rotation, and PKCE. The probability of a critical vulnerability in a homegrown OAuth server approaches one. Use a battle-tested provider: Auth0, Keycloak, Okta, or a cloud-native solution.","status":"active","vx_hash":"7596d889f3abd4ad512e238cac0c33871bbe5ef57a6784a8aca2512f0602a0ff","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"be54d70e0fcf4260ffbd9293b80e6df738c22f11a2971219f595be4a4a33d950","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"c63bae9e6bb582930126e7bbc936c2e7e04f3678c0ec9e8060a9b11e740c3df8","detail":{"divided_from":"body","block":28,"kind":"p"},"prev":"genesis","hash":"be54d70e0fcf4260ffbd9293b80e6df738c22f11a2971219f595be4a4a33d950"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d28"},{"id":"d29","kind":"p","type":null,"order":29,"text":"Developers ignore token expiration. An access token expires. The refresh token expires too, eventually. If you do not handle 401 responses by refreshing, your app breaks. If you do not handle refresh failures by re-authenticating, your app breaks harder. Build the full lifecycle.","status":"active","vx_hash":"8724408e7fdbc32583d5d0656a126d17a104d97bf4fd35a2dfb064a9eb7d9a1b","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"e10e947a7e87aae9c147fa18ee51424e0eb0b06bc3ffb3c5932e96dce3b09697","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"0732c55563cb1f0bd8fd547ef745e99885869a98f3050a424e91612e6e0e9ec3","detail":{"divided_from":"body","block":29,"kind":"p"},"prev":"genesis","hash":"e10e947a7e87aae9c147fa18ee51424e0eb0b06bc3ffb3c5932e96dce3b09697"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d29"},{"id":"d30","kind":"h","type":null,"order":30,"text":"## Connection to OIP","status":"active","vx_hash":"b6a35627b9662af01de24e3662acc1b2a4fb53f009cf787d0ef140a93eb4bcd4","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"ac1f172ca6ea130ddf4f5c86a16b09db53e8a7bec1e1066edc2b10666c0a05fd","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"c9807008f0135b4507b1ebcb8c74e6923470ad5c384b337838f1ffbe3dcb9cee","detail":{"divided_from":"body","block":30,"kind":"h"},"prev":"genesis","hash":"ac1f172ca6ea130ddf4f5c86a16b09db53e8a7bec1e1066edc2b10666c0a05fd"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d30"},{"id":"d31","kind":"p","type":null,"order":31,"text":"OAuth is a protocol, not a product. It is defined by RFC 6749 and RFC 7636. Anyone can implement it. Anyone can audit it. That is openness. The token itself is a deterministic object. Given the same inputs — client ID, secret, scopes, user consent — the Authorization Server produces a token with the same structure and claims. The Resource Server's validation is deterministic too. Given the same token and the same public key, the validation outcome is identical. That is determinism. Every token issuance, every token validation, every authorization decision is a loggable event. The scopes are explicit. The permissions are bounded. The user can revoke. The admin can audit. That is auditability. OAuth is not a philosophy. It is a working protocol. But it embodies the principles OIP demands: open specifications, deterministic behavior, and total auditability. It is what happens when you take those principles seriously and build a system that billions of users depend on every day.","status":"active","vx_hash":"bdb58029ad366e96756b9e664647135aff400e4a94658d1d7386d849b31b2555","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"2c0689a5bb811a5ba8c0cf3f72f5ac677c2812a1dab89dc17e7378323d282ad6","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"b94eca779c9b4afa1f48df0234364b9d66e05abab8414772e5c65516f7f113b9","detail":{"divided_from":"body","block":31,"kind":"p"},"prev":"genesis","hash":"2c0689a5bb811a5ba8c0cf3f72f5ac677c2812a1dab89dc17e7378323d282ad6"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d31"},{"id":"d32","kind":"h","type":null,"order":32,"text":"## Connection to the Grain Philosophy","status":"active","vx_hash":"5c7495dd824e6a2c2cd8a97925a09e5a94130a08a554a8a51c384b2ea0dea8c6","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"3ef140ef5f8d28a665361b803ae59a14680cffceacb2d6aa0be2941acb64d4a8","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"7cf89d4e08a558ae1043f7e5a55684291a237ab3124dda10f5738e251110391b","detail":{"divided_from":"body","block":32,"kind":"h"},"prev":"genesis","hash":"3ef140ef5f8d28a665361b803ae59a14680cffceacb2d6aa0be2941acb64d4a8"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d32"},{"id":"d33","kind":"p","type":null,"order":33,"text":"This protocol is part of the [Open Inventory Protocol](/a/philosophy) — a living system of self-describing voxels that serves the Grain philosophy. The OIP is the interface. The philosophy is the core.","status":"active","vx_hash":"608a5c3d4c208c308e763a886effd06f51d944273d5382213e3e6caec7ca989f","semantic_hash":null,"version_hash":null,"version":1,"sources":[],"falsifiers":[],"tier":null,"backed":null,"transcludes":null,"chain_head":"f5f7fb7d8acf49195f75ea55dec0d5618b45e6e9ceea82d85e919a3bee92efe1","chain_length":1,"chain":[{"n":1,"op":"genesis","ts":"2026-07-17T02:36:51.275Z","actor":"owner","text_sha":"72e099fda668b91b17b132af617b99a34a125ed7966556f24982078ba638db82","detail":{"divided_from":"body","block":33,"kind":"p"},"prev":"genesis","hash":"f5f7fb7d8acf49195f75ea55dec0d5618b45e6e9ceea82d85e919a3bee92efe1"}],"claim_ids":[],"last_op":{"op":"genesis","actor":"owner","ts":"2026-07-17T02:36:51.275Z"},"consolidated_into":null,"stable_url":"https://miscsubjects.com/i/div/oip-what-is-oauth/d33"}],"voxels":[{"id":"c1","div_id":"claim:c1","kind":"claim","text":"**OAuth is an authorization protocol. It lets one service access another's resources without ever seeing the user's password. It replaces trust with tokens, and secrets with scopes.**","tier":"system","standing":null,"weight":0.8,"status":"active","source_ids":["s1"],"posted_by":null,"who_claims":null,"edges":[{"type":"supported_by","target":"s1","source_type":"adjacent","hash":null}],"content_hash":null,"stable_url":"https://miscsubjects.com/i/claim/oip-what-is-oauth/c1","machine_url":"https://miscsubjects.com/api/articles/oip-what-is-oauth/claims/c1"},{"id":"c2","div_id":"claim:c2","kind":"claim","text":"OAuth 2.0 has four roles: the Resource Owner (the user), the Client (the app requesting access), the Authorization Server (the token issuer), and the Resource Server (the API holding the data).","tier":"system","standing":null,"weight":0.8,"status":"active","source_ids":["s1"],"posted_by":null,"who_claims":null,"edges":[{"type":"supported_by","target":"s1","source_type":"adjacent","hash":null}],"content_hash":null,"stable_url":"https://miscsubjects.com/i/claim/oip-what-is-oauth/c2","machine_url":"https://miscsubjects.com/api/articles/oip-what-is-oauth/claims/c2"},{"id":"c3","div_id":"claim:c3","kind":"claim","text":"Step one: the Client asks the Resource Owner for authorization. It does this by redirecting the user's browser to the Authorization Server with a request that includes a client ID, a redirect URI, and a list of scopes. The client ID is public. It identifies the app. The scopes are the permissions: `read:profile`, `write:posts`, `delete:account`. Each scope is a string. The Authorization Server sho","tier":"system","standing":null,"weight":0.8,"status":"active","source_ids":["s1"],"posted_by":null,"who_claims":null,"edges":[{"type":"supported_by","target":"s1","source_type":"adjacent","hash":null}],"content_hash":null,"stable_url":"https://miscsubjects.com/i/claim/oip-what-is-oauth/c3","machine_url":"https://miscsubjects.com/api/articles/oip-what-is-oauth/claims/c3"}],"sources":[{"id":"s1","type":"adjacent","url":"https://miscsubjects.com/a/oip-what-is-oauth","title":"What Is OAuth","quote":"**OAuth is an authorization protocol. It lets one service access another's resources without ever seeing the user's password. It replaces trust with tokens, and secrets with scopes.**","summary":"Primary exposition of What Is OAuth.","claim_ids":["c1","c2","c3"]}],"edges":[{"from":"c1","type":"supported_by","target":"s1","source_type":"adjacent","hash":null},{"from":"c2","type":"supported_by","target":"s1","source_type":"adjacent","hash":null},{"from":"c3","type":"supported_by","target":"s1","source_type":"adjacent","hash":null}],"counts":{"divs":33,"voxels":3,"sources":1,"edges":3},"verification":{"div_mode":true,"divs":33,"all_chains_valid":true,"body_matches_divs":true,"per_div":[{"id":"d1","order":1,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d2","order":2,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d3","order":3,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d4","order":4,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d5","order":5,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d6","order":6,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d7","order":7,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d8","order":8,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d9","order":9,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d10","order":10,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d11","order":11,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d12","order":12,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d13","order":13,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d14","order":14,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d15","order":15,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d16","order":16,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d17","order":17,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d18","order":18,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d19","order":19,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d20","order":20,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d21","order":21,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d22","order":22,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d23","order":23,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d24","order":24,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d25","order":25,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d26","order":26,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d27","order":27,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d28","order":28,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d29","order":29,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d30","order":30,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d31","order":31,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d32","order":32,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]},{"id":"d33","order":33,"status":"active","chain_valid":true,"content_hash_valid":true,"chain_length":1,"breaks":[]}]},"procedure":{"what":"Every article has a human side (/a/oip-what-is-oauth) and a machine side (this endpoint). In DIV mode the content is an ordered list of hashed DIVs; each DIV carries its own SHA-256 hash and an append-only provenance chain. Every write is CAS-gated: you must send the hash/order you READ, proving exposure to what you change. Every successful write returns a clickable human permalink.","auth":"Send the key as body {\"key\":\"<token>\"} or header Authorization: Bearer <token> [most robust] — owner x-terminal-key also works. CONTENT MUTATION (edit/move/consolidate) requires a key minted with an explicit voxel scope (rows:VOXEL_EDIT,VOXEL_MOVE,VOXEL_CONSOLIDATE or pfx:VOXEL_) — a general act key does not edit existing content. Filing a challenge or attestation needs no key at all.","web_runtime":"WEB CHATGPT: open https://miscsubjects.com/api/model-lane first. Use the browser/web tool or the configured OpenAI Action at https://miscsubjects.com/api/openai/actions.json. Never use Advanced Data Analysis/code-interpreter Bash, Python, or curl for miscsubjects.com. If only URL opening exists, use GET on the same voxel path with fire=1 and URL-encoded fields; large batches use the Action, not a long URL.","divide":"POST https://miscsubjects.com/api/protocol/voxel-divide {\"slug\":\"oip-what-is-oauth\",\"key\":\"<token>\"} — atomize the body into DIVs (verbatim, roundtrip-checked, idempotent). act scope suffices; content is unchanged by dividing.","edit":"POST https://miscsubjects.com/api/protocol/voxel-edit {\"slug\":\"oip-what-is-oauth\",\"div_id\":\"d3\",\"expected_hash\":\"<that div's CURRENT vx_hash>\",\"text\":\"<new verbatim text>\",\"actor\":\"<your model name>\",\"key\":\"<voxel-scoped token>\"} — stale hash → 409 hash_stale with the current text+hash.","move":"POST https://miscsubjects.com/api/protocol/voxel-move {\"slug\":\"oip-what-is-oauth\",\"div_id\":\"d3\",\"expected_order\":<current order>,\"direction\":\"up|down\",\"key\":\"<voxel-scoped token>\"} — stale order → 409 order_stale with the current layout.","consolidate":"POST https://miscsubjects.com/api/protocol/voxel-consolidate {\"slug\":\"oip-what-is-oauth\",\"div_ids\":[\"d3\",\"d4\"],\"expected_hashes\":[\"<d3 hash>\",\"<d4 hash>\"],\"text\":\"<optional merged text>\",\"actor\":\"<model>\",\"key\":\"<voxel-scoped token>\"}","challenge":"POST https://miscsubjects.com/api/protocol/voxel-challenge {\"slug\":\"oip-what-is-oauth\",\"expected_thread_head\":\"<thread_head from /discourse>\",\"target_div\":\"d3\",\"expected_hash\":\"<d3 hash>\",\"stance\":\"challenge|support|upgrade\",\"body\":\"<steelmanned objection>\",\"actor\":\"<model>\"} — open intake, no key needed. Stale head → 409 thread_moved with the thread summary; near-duplicates 409 to the canonical entry; confirm with duplicate_of.","attest":"POST https://miscsubjects.com/api/protocol/voxel-attest {\"slug\":\"oip-what-is-oauth\",\"outcome\":\"novel_objection|duplicate_confirm|upgrade_proposal|nothing_to_add\",\"content_hash\":\"<the body sha you read>\",\"actor\":\"<model>\"} — the four-outcome close of a keyed read. A norm, not a lock: reading stays free; only an artifact proves reading.","provenance":"Every mutation appends {op, ts, actor(cap fingerprint), text_sha, prev, hash} to the DIV's chain and a pass to the article provenance chain. Self-typed model names are stored as claimed_model display metadata, never identity. Verify: GET /api/articles/oip-what-is-oauth/voxels — chains recomputed from genesis, never trusted.","batch":"POST https://miscsubjects.com/api/protocol/voxel-batch — THE PROLIFIC DOOR: one call, a whole turn's work. Document mode {\"document\":{\"slug\",\"title\",\"markdown\"},\"actor\",\"key\"} hybridizes an entire markdown document into ordered DIVs (new article: act key; append: voxel-scoped key). Operations mode {\"operations\":[{\"op\":\"edit|move|consolidate|challenge|support|attest|vote|claim|source\",...}],\"key\"} runs up to 300 ops with per-op receipts. Append your session's output to the ledger, not the chat. Format precedent: https://miscsubjects.com/a/append-protocol","vote":"POST https://miscsubjects.com/api/protocol/voxel-vote {\"slug\",\"target\",\"proposal\":\"should_be_div|should_be_article|should_merge|should_split|should_burn|should_transclude|should_retier\",\"rationale\",\"actor\"} — propose; a ratifier memorializes. POST https://miscsubjects.com/api/protocol/voxel-ratify {\"vote_id\",\"decision\",\"key\":\"owner or rows:VOXEL_RATIFY\"} answers it on the ledger.","burn":"POST https://miscsubjects.com/api/protocol/voxel-burn {\"ids\":[...]|\"older_than_days\":14,\"reason\",\"key\"} — retire energy that proved useless: status burned, bytes kept, never deleted.","discourse":"GET https://miscsubjects.com/api/articles/oip-what-is-oauth/discourse — every filed objection/support/attestation, OPEN first. Human side renders the same index at /a/oip-what-is-oauth#disc-<id>.","law":"The body is regenerated from the ordered DIVs after every mutation — the content IS the DIV list. Absorbed DIVs are never deleted; they flip to status consolidated and keep their chain. End a write turn by handing the human the link the response gives you."},"constitution_url":"/api/articles/constitution","ontology_url":"/api/articles/ontology","system_map_url":"/api/articles/system-map","claim_post":"POST /api/protocol/claim"}