| Internet-Draft | OAuth 2.1 Government Content Access Cont | December 2025 |
| Morin | Expires 19 June 2026 | [Page] |
This document defines an OAuth 2.1 profile that enables a government authority to enforce age-based and content-based access restrictions for online services while preserving user privacy. The protocol allows relying parties to request government-defined regulatory scopes (such as pornography or social media access) and receive cryptographically verifiable eligibility decisions without disclosing user identity, exact age, or personally identifiable information. The profile constrains OAuth features to prevent abuse, cross-service correlation, and unauthorized token issuance.¶
This note is to be removed before publishing as an RFC.¶
Status information for this document may be found at https://datatracker.ietf.org/doc/draft-fx-oauth-government-content- access-control/.¶
Discussion of this document takes place on the Web Authorization Protocol Working Group mailing list (mailto:oauth@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/oauth/. Subscribe at https://www.ietf.org/mailman/listinfo/oauth/.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 19 June 2026.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Governments increasingly require online services to restrict access to certain categories of content based on the age or legal status of users. Existing approaches frequently rely on disclosure of personal data, third-party identity providers, or proprietary mechanisms that enable tracking across services.¶
This document specifies *OAuth 2.1 Government Content Access Control (GCAC)*, an OAuth 2.1 profile in which a government-operated authorization server evaluates user eligibility for regulated content categories and issues privacy-preserving attestations to relying parties. GCAC is designed to answer narrowly scoped regulatory questions (e.g., whether a user may access a category of content) while minimizing data disclosure and preventing correlation across services.¶
GCAC is not an identity system and MUST NOT be used for authentication, user login, or personalization.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The following additional terms are used: - *Government Content Control Authority (GCCA)*: - A government-operated OAuth Authorization Server responsible for identity verification, age evaluation, and policy enforcement. - *Relying Party (RP)*: - An OAuth client requesting eligibility decisions for regulated content. - *Scope*: - A government-defined content access category (e.g., pornography, social_media, gambling, alcohol, firearms, vpn, proxy). - *Person Key*: - A government-internal, pseudonymous identifier derived from a national identity record and never exposed outside the GCCA. - *Site Token*: - An RP-scoped, non-reversible token representing a government eligibility attestation.¶
The goals of this specification are: - Enable government-enforced content access controls - Support multiple regulatory scopes defined by government policy - Prevent disclosure of identity, date of birth, or exact age - Prevent cross-RP correlation of users - Leverage existing OAuth 2.1 security mechanisms¶
GCCA uses the OAuth 2.1 Authorization Code flow with mandatory security extensions and additional semantic constraints.¶
User → Relying Party → Government Content Control Authority ↑ ↓ └──── OAuth 2.1 ───────┘¶
The GCCA operates as a constrained OAuth Authorization Server, and the RP operates as a confidential OAuth client.¶
Scopes represent legally regulated content categories. Examples include:¶
pornography social_media gambling alcohol firearms vpn proxy¶
Each scope: - MUST be defined and governed by the GCCA - MUST correspond to a legal or regulatory access rule - MUST prevent scope definitions or combinations thereof that would allow an RP to infer a user’s exact age or approximate age range through multiple eligibility queries. Scopes MUST be coarse-grained and legally motivated, and MUST NOT be parameterized by numeric age values.¶
For each requested scope, the GCCA determines whether the user satisfies the applicable legal requirement. The RP receives only a boolean eligibility result per scope.¶
Relying parties MUST register with the GCCA prior to using GCAC.¶
During registration, the RP MUST provide: - Legal entity identification - Intended use and justification for requested scopes - One or more redirect URIs - A client authentication method (mutual TLS or private_key_jwt)¶
The GCCA MAY restrict which scopes an RP is authorized to request.¶
The RP initiates an OAuth authorization request:¶
GET /authorize ?response_type=code &client_id=client_id &redirect_uri=registered_uri &scope=pornography social_media &state=random_nonce &code_challenge=pkce_value`¶
The GCCA MUST reject requests that include unregistered redirect URIs or unauthorized scopes.¶
The GCCA authenticates the user using government-controlled mechanisms and evaluates eligibility for each requested scope.¶
Upon successful evaluation, the GCCA redirects the user back to the RP with an authorization code.¶
The RP exchanges the authorization code at the token endpoint using client authentication and PKCE. The GCCA responds with a site-scoped eligibility attestation:¶
json { "site_token": "opaque_string", "scope_results": {
"pornography": true, "social_media": false }, "expires_at":
"timestamp" }
¶
The GCCA MUST derive an internal person key as follows:¶
person_key = HMAC(master_secret_key, national_person_id) The site token MUST be derived deterministically: site_token = HMAC(person_key, client_id)¶
The person key and national identifiers MUST NOT be exposed outside the GCCA.¶
Relying parties MUST provide a user-accessible mechanism to re- initiate the GCAC flow. Re-verification MUST follow the same protocol as the initial authorization.¶
GCAC relies on OAuth 2.1 security best practices, including authorization code flow, PKCE, redirect URI allowlists, and strong client authentication. Leaked client identifiers alone do not enable token issuance. Tokens are RP-scoped and non-transferable, preventing cross-service correlation and replay attacks.¶
This document has no IANA actions.¶
The author would like to acknowledge ongoing discussions within the OAuth and digital privacy communities that informed the design principles of this specification.¶