OpenID Connect & OAuth 2.1 PKCE Integration
Integrate Sign in with Protext using OpenID Connect Core discovery, OAuth 2.1 authorization code flow with S256 PKCE, RFC 9207 iss checks, and RS256 ID tokens.
Every guide below maps directly onto SPEC.md and the MIT-licensed reference provider at protext.org—covering OpenID Connect Core, OAuth 2.1 PKCE (S256), typed context scopes, provenance receipts, the browser SDK, and self-hosting.
Start with standard OpenID Connect: point any OIDC relying party at https://protext.org/.well-known/openid-configuration, or drop https://protext.org/sdk.js into HTML for zero-secret PKCE sign-in and data-protext form autofill.
Request only the category scopes your app needs (context:identity, context:contact, context:link, context:work, context:interest, context:memory, context:pref). Users tick individual items on the consent screen, and your app receives both the inline context bundle and RS256-signed context_token.
Integrate Sign in with Protext using OpenID Connect Core discovery, OAuth 2.1 authorization code flow with S256 PKCE, RFC 9207 iss checks, and RS256 ID tokens.
Complete PROTEXT/0.1 reference for the 7 context categories, 23 well-known item kinds, OIDC claim mappings, structured values, and bundle envelope fields.
Add Sign in with Protext to any web page using public/sdk.js: zero-secret PKCE S256 in the browser, data-protext form autofill, and protext:signed-in events.
Register public PKCE or confidential OIDC relying parties immediately at POST https://protext.org/oidc/register using RFC 7591 without creating a provider account first.
Verify RS256 signed id_token and context_token JWS payloads against /.well-known/jwks.json using standard JOSE libraries for verifiable third-party bundle handoff.
Understand how PROTEXT/0.1 enforces sentence-by-sentence consent checkboxes, provenance source receipts without private transcripts, item visibility, and access logs.
How Protext imports verifiable public profile items from TeamMeet and America.co and parses ChatGPT, Claude, and Gemini memory exports verbatim with honest provenance.
Read live context updates via GET /api/v0/context and /oidc/userinfo, rotate offline_access refresh tokens, revoke tokens with RFC 7009, and export full vaults via /api/v0/export.
Deploy your own MIT-licensed PROTEXT/0.1 provider with Next.js 15, Postgres, Drizzle, and PROTEXT_JWK, and implement /.well-known/protext.json multi-provider discovery.
| Endpoint | Standard | Purpose |
|---|---|---|
/.well-known/openid-configuration | OIDC Discovery 1.0 | Authorization, token, userinfo, registration, revocation, JWKS, and Protext extensions |
/.well-known/protext.json | PROTEXT/0.1 §8 | Categories, well-known kinds, import sources, personhood_issuers, and SDK URL |
/.well-known/jwks.json | RFC 7517 JWKS | Public RS256 verification key for id_token and context_token |
POST /oidc/register | RFC 7591 | Dynamic public (PKCE) or confidential client registration without an account |
GET /api/v0/context | PROTEXT/0.1 §5, §6.3 | Live bundle read under an active grant (add ?format=jwt for RS256 JWS) |
GET /api/v0/export | PROTEXT/0.1 §6.4 | Full vault download (<handle>.protext.json) for authenticated vault owners |
The nine Protext guides document every part of the PROTEXT/0.1 specification and reference provider: OpenID Connect Core and OAuth 2.1 PKCE (S256), context bundles and category scopes, the zero-secret browser SDK (/sdk.js), RFC 7591 dynamic client registration, RS256 signed context_token verification via JWKS, item-level consent and provenance receipts, AI memory and profile importers, live grant reads and RFC 7009 revocation, and self-hosting a provider.
No. PROTEXT/0.1 is a profile of OpenID Connect Core using the authorization code flow with PKCE (S256). Any standard OIDC library or relying party can point at https://protext.org/.well-known/openid-configuration to authenticate users and receive standard ID token claims, while Protext-aware apps also read the consented context bundle.
Every endpoint, scope, item kind, token lifetime, and wire format in these guides reflects PROTEXT/0.1 (Draft 0.1, MIT license) as published in SPEC.md and implemented by the open-source reference provider at https://protext.org.
Yes. Public clients register via RFC 7591 with token_endpoint_auth_method set to none (the default) and use /sdk.js with OAuth 2.1 PKCE (S256). The SDK handles code_verifier generation in sessionStorage, token exchange at /oidc/token, declarative form autofill via data-protext attributes, and dispatches the protext:signed-in event.
Relying parties only request category scopes such as context:work or context:memory, never raw transcripts. On the consent screen the person ticks or unticks individual items, memory.* items default to unchecked on a new grant, and every item starts private inside the vault until explicitly granted or marked public.
Yes. Alongside the full English guide hub at /guides, Protext publishes localized developer hubs in Spanish, Portuguese, French, German, Japanese, Korean, Hindi, Indonesian, and Turkish under /lang.