Skip to content

Part B: OpenID Connect provider (authorization code + PKCE) - #5

Merged
downlevel merged 1 commit into
mainfrom
sso-b
Oct 22, 2026
Merged

downlevel merged 1 commit into
mainfrom
sso-b

Conversation

@downlevel

Copy link
Copy Markdown
Owner

Any app can now sign users in with a standard OIDC library:

  • Discovery, JWKS (RSA-2048 key generated on first start, published with os.link, mode 0600, RFC 7638 kid), /authorize, /token, /userinfo.
  • Confidential clients (client_secret_basic / client_secret_post), PKCE S256, nonce, prompt=none|login, iss response parameter; codes bound to the SSO session, single use with token revocation on replay (also after purge).
  • Opaque 10-minute access tokens for /userinfo; RS256 ID tokens with a stable sub (users.public_id). One TeleLogin login serves all apps.
  • Admin CLI: app add --redirect-uri, app redirect-uri add|remove, app rotate-secret (secrets printed once, never shown again).
  • Cascades on unlink / user remove / app remove; purge retention rule.
  • docs/INTEGRATION.md Mode 1 guide and examples/oidc_fastapi (Authlib).

Built by Codex from the reviewed plan; inspected twice by fresh Claude sessions (first: 6 findings fixed by Codex; second: APPROVED with three optional low findings deferred to Part C). The test suite now uses a temporary OIDC key path so no key is written into the checkout, and data/ is gitignored.

Verification: 161 tests pass (also with -W error), ruff clean; Authlib end-to-end test with a path prefix; live run of the example app against a real TeleLogin server completed a full login.

Any app can now sign users in with a standard OIDC library:
- Discovery, JWKS (RSA-2048 key generated on first start, published with
  os.link, mode 0600, RFC 7638 kid), /authorize, /token, /userinfo.
- Confidential clients (client_secret_basic / client_secret_post), PKCE S256,
  nonce, prompt=none|login, iss response parameter; codes bound to the SSO
  session, single use with token revocation on replay (also after purge).
- Opaque 10-minute access tokens for /userinfo; RS256 ID tokens with a
  stable sub (users.public_id). One TeleLogin login serves all apps.
- Admin CLI: app add --redirect-uri, app redirect-uri add|remove,
  app rotate-secret (secrets printed once, never shown again).
- Cascades on unlink / user remove / app remove; purge retention rule.
- docs/INTEGRATION.md Mode 1 guide and examples/oidc_fastapi (Authlib).

Built by Codex from the reviewed plan; inspected twice by fresh Claude
sessions (first: 6 findings fixed by Codex; second: APPROVED with three
optional low findings deferred to Part C). The test suite now uses a
temporary OIDC key path so no key is written into the checkout, and data/
is gitignored.

Verification: 161 tests pass (also with -W error), ruff clean; Authlib
end-to-end test with a path prefix; live run of the example app against a
real TeleLogin server completed a full login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@downlevel
downlevel merged commit 6112d91 into main Oct 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant