hephaestus/crates/hephd/tests
Erich Blume 1f81a2e6d9
All checks were successful
Build / validate (pull_request) Successful in 6m31s
feat(heph-pwa): Login with Authentik (Authorization Code + PKCE)
Replace the manual bearer-token paste with a proper browser OIDC sign-in.

- Hub: unauthenticated GET /config -> {issuer, client_id} (added after the auth
  layer), sourced from the verifier's new TokenVerifier::oidc_config(). Lets the
  PWA self-configure when served from the hub. Tests in web_serve.rs.
- PWA: src/oauth.js implements PKCE (S256), the authorize redirect, the callback
  token exchange, and silent refresh (offline_access). Settings gains a "Login
  with Authentik" button (manual token kept under a fallback disclosure); rpc.js
  retries once on 401 via a refresh hook; app.js completes the callback / refreshes
  on load; sw.js skips caching the callback URL and ships oauth.js in the shell.

Requires the PWA origin registered as a redirect URI on the Authentik provider.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-05 07:17:05 -07:00
..
auth_hub.rs hephd: OIDC client auth — device-code flow + token attach (auth 10b) 2026-06-01 16:27:36 -07:00
client_mode.rs feat(views): filter views (§8.2) — saved agenda slices 2026-06-03 06:39:07 -07:00
oauth.rs hephd: OIDC client auth — device-code flow + token attach (auth 10b) 2026-06-01 16:27:36 -07:00
rpc_socket.rs style: rustfmt the new rpc_socket tests 2026-06-04 12:31:01 -07:00
sync_http.rs C2(hephd-self-update): impl verify hub-dropout resilience (+ client timeout) 2026-06-04 13:47:26 -07:00
web_serve.rs feat(heph-pwa): Login with Authentik (Authorization Code + PKCE) 2026-06-05 07:17:05 -07:00