A sentence written in 2012 still writes the budget

RFC 6749 appeared in October 2012. Section 2.2 states that a client_id is not a secret and must not be used alone for client authentication. One line in a standards document, repeated across a decade of SDKs, still decides whether a string shipped inside a front end can serve as proof of identity. Authentication is usually presented as a choice on a login page. It behaves more like a contract signed on behalf of every client that comes later.

The reason is structural. OAuth 2.0 splits the world into four roles — resource owner, client, authorization server, resource server — and then splits clients again into confidential and public ones. A public client cannot keep static credentials private; RFC 6749 assumes that any client authentication credentials included in the application can be extracted. That assumption holds whatever platform name is attached to the client. A front end running inside a host container gets classified by whether it can protect a credential; the container's existence settles nothing. Treating the container itself as evidence of confidentiality skips the only test that matters.

Three things that often get grouped under the word credential behave differently. A client_id identifies and is public. An API key identifies an API client, and OWASP API2:2023 is explicit that API keys should not be used for user authentication. A bearer token, under RFC 6750, is usable by whoever holds it without proving possession of key material. Folding the three into one secret produces designs where a distributed identifier is asked to do the work of a user session.

Signal in the contractWhere the rule comes fromWhat the client side must absorb
client_id is a public identifierRFC 6749 §2.2 (2012)Keep it out of any proof-of-identity step
PKCE becomes mandatoryOAuth 2.1 draft-17 (2026-10-31); RFC 9700 (2025-01)Verifier generation and S256 challenge in every public-client flow
Redirect URI matched exactlyRFC 9700 §2.2.2; OAuth 2.1 draftRegister the full string; loopback ports are the exception
Token kept out of URI queryRFC 6750 §2.3 SHOULD NOT; RFC 9700 MUST NOTHeader or form body first; no tokens in links or logs
Public-client refresh token constrained or rotatedRFC 9700 §2.2.2Choose sender constraint or rotation at design time

Two rows deserve a closer look, because their wording is usually flattened. RFC 6750 says passing a bearer token in a URI query SHOULD NOT happen, with an exception when the header and body routes are impractical. RFC 9700, published as BCP 240 in January 2025, raises the same idea to MUST NOT. Writing that a specification forbids tokens in URLs erases the gap between a SHOULD and a MUST, and loses which document carries which. RFC 6750 also recommends a short token lifetime — an hour or less — but the text frames that as a SHOULD recommendation and sets no hard ceiling; the page now carries notices that RFC 8996 and RFC 9700 update it.

The shape of the flow gets locked in just as early. OAuth 2.1, at draft-17 dated 31 October 2026 and expiring 4 May 2027, keeps only authorization code, refresh token and client credentials; implicit and password grants are not specified in it, PKCE moves from optional to required, and redirect URIs must be registered completely and matched exactly, with a native loopback-port exception. This is an Internet-Draft; no published RFC backs those clauses. Treating them as ratified standard, or inventing an effective date for them, is a category error. RFC 9700 is a real published BCP, but the copy checked here was truncated after section 4.8.1, so the rotation mechanics in section 4.14 were never verified page by page. The safe statement is that a public client's refresh token must be sender-constrained or rotated; the specific algorithm and interval stay open.

Identity adds another layer with its own trap. OpenID Connect Core 1.0, errata set 2, final on 15 December 2023, puts an identity layer over OAuth 2.0; the ID Token is a signed JWT carrying iss, sub, aud, exp and iat as required claims. The exp value describes the token's own lifetime; the end of the session between the relying party and the provider is a separate matter. Reading expiry as a logout is a common mistake with a precise correction in the spec. The line that OAuth is not authentication, and neither are API keys, comes from OWASP's community guidance in the API Security Top 10 — not from an IETF text. API2:2023 is the only OWASP entry checked here; API1 was left unread.

There is a real cost in being strict early. Requiring PKCE, exact redirect matching and sender-constrained refresh tokens makes the first integration more expensive and rules out some legacy clients. Relaxing them lowers the first invoice and pushes the cost into every integration after it, because the weak default has to be compensated for in each SDK, each callback registration and each token store. No first-hand measurement of mini-program auth migrations exists in this batch, so the honest claim is structural: a credential shape chosen once tends to be reused across every capability and every host it reaches.

That is where an open catalog and a shared runtime change the arithmetic. A capability published once can be consumed on several host surfaces, and an auth contract defined at the catalog level is inherited instead of renegotiated surface by surface. Cross Mini App gives that reuse a place to land without writing the security policy for anyone; the policy still has to be chosen, and the earlier it is chosen, the fewer later integrations carry its price.

Sources