| Internet-Draft | OAuth 2.1 Gov Content Access Control | January 2026 |
| Morin | Expires 29 July 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.¶
The latest revision of this draft can be found at https://fxmorin.github.io/government-content-access-control.¶
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/.¶
Source for this draft and an issue tracker can be found at https://github.com/FxMorin/government-content-access-control¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] & [RFC8174].¶
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 29 July 2026.¶
Copyright (c) 2026 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 [I-D.ietf-oauth-v2-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 following 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.¶
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:¶
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 [RFC8705] or private_key_jwt)¶
The GCCA MAY restrict which scopes an RP is authorized to request.¶
The RP initiates an OAuth authorization request:¶
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 [RFC7636].¶
The GCCA responds with a site-scoped eligibility attestation as a standard OAuth 2.1 token response, including additional custom parameters:¶
The "access_token" field contains the site token, which is an RP-scoped, non-reversible eligibility attestation.¶
The GCCA MUST derive an internal person key using HMAC-SHA256 with a globally unique
master secret key (master_secret_key) and a stable, unique national identifier for
the person (national_person_id):¶
person_key = HMAC_SHA256(master_secret_key, national_person_id)
The site token MUST be derived deterministically using HMAC-SHA256 from the
person key (person_key) and the client identifier (client_id):¶
site_token = HMAC_SHA256(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 [RFC7636], redirect URI allowlists, and strong client authentication. General security considerations for OAuth 2.0 [RFC6819] also apply. To further protect the integrity and confidentiality of authorization requests, RPs SHOULD use JWT-Secured Authorization Request (JAR) [RFC9101]. 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.¶