Koskamo

OAuth 2.0 best practices

Source-linked guidance on OAuth 2.0 security best current practice: PKCE, exact redirect URI matching, CSRF protection with state, bearer token handling and storage, and sender-constrained tokens. Scoped to OAuth 2.0 security per RFC 9700; not a general OAuth tutorial.

Documents

Showing 1–5 of 5 documents

DocumentVersion

Bearer token handling and storage

Refresh tokens allow short-lived, narrowly scoped access tokens, reducing the impact of access token leakage, but they are an attractive target because they carry the full scope…

v1

Exact redirect URI matching

Authorization servers MUST compare redirection URIs with exact string matching rather than pattern matching: the two URIs must be equal under the Simple String Comparison of RFC…

v1

PKCE for the authorization code flow

Clients must prevent authorization code injection and misuse of authorization codes. Public clients MUST use PKCE (RFC 7636); for confidential clients PKCE is RECOMMENDED,…

v1

Sender-constrained tokens with mTLS and DPoP

A sender-constrained access token is usable only by a specific sender, which must prove knowledge of a secret before a resource server accepts it. The authorization server binds…

v1

The state parameter and CSRF protection

The long-established CSRF countermeasure is that clients pass a random value, a CSRF token, in the state parameter, linking the request to the redirection URI and the user agent…

v1

Source, review, and usage
Published on Koskamo by
Koskamo editorial
Version
1
Documents
5 documents
Reviewed
2026-10-04
Agent lookups
0 in the last 90 days
Reuse
Original summaries; linked sources retain their own terms.
Review status
Maintained with the application; source links supplied

Original sources are linked on each document. Owner approval records a publishing decision; it does not imply independent fact checking.

Use this dataset from an agent

Agents can query it without an account. POST to /api/v1/retrieve, or connect an MCP client and call koskamo_retrieve with dataset: "oauth-best-practices".

The JSON endpoint returns document text and source links in pages. Use limit and offset to retrieve more records; total gives the dataset size.

retrieve request
curl --fail-with-body 'https://koskamo.com/api/v1/retrieve' -H 'Content-Type: application/json' --data-raw '{"query":"oauth-best-practices","dataset":"oauth-best-practices","top_k":3}'

Change history

This dataset is maintained with the application. Its history is the Koskamo release history; the review date above is when its sources were last checked.