forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/im-client/src/lib.rsClear filter

2026-09-08

im-client: feature-gate the OIDC half (default on); directory SDK always buildsAhmet Kaan Gümüş · f7b2081
im-client: feature-gate the OIDC half (default on); directory SDK always builds

A consumer binary that speaks OIDC through its own client crate linked
im-client's inventory-registered /auth routes alongside its own and
panicked at router build on the duplicate GET /auth/logout. The OIDC
half (Config, ImClient, mount, current_user, User, the /auth routes,
the token and JWKS machinery, and the demo example) now lives behind
the `oidc` feature - on by default, so greenfield consumers get the
full mount unchanged. `default-features = false` compiles only the
directory SDK (DirectoryClient, the SSE parser, spawn_sync) and none
of the routes. Error/Result stay ungated: the directory half is their
reader. Crate docs state the two shapes and when to turn the feature
off.
Profile changes live everywhere: photo_version, version-aware /photo, /directory photo_version + /directory/live stream, typed live bus, im-client directory moduleAhmet Kaan Gümüş · 339b198
Profile changes live everywhere: photo_version, version-aware /photo, /directory photo_version + /directory/live stream, typed live bus, im-client directory module

The photo cache buster moves out of im's process memory (PhotoStamps)
into the users row, so every reader — this process, the next restart,
and every sibling app — sees the same one:

- users.photo_version (migration follows the guarded-ALTER precedent;
  im-migrate's schema copy grows it in the same diff); set_photo and
  clear_photo bump it in their commit.
- GET /photo/{sub} answers a strong ETag "p{version}" with a 304 on
  If-None-Match, and caches immutable ONLY when the URL's ?v= names the
  current version — the bare URL an app fetches revalidates (no-cache).
- /directory entries and POST /introspect answers gain photo_version;
  DirectoryMember is one shape for the JSON and the stream.
- App.live carries LiveEvent { Tick, Profile(DirectoryMember) }: the
  browser /live keeps its anonymous data:{} tick and adds a
  {"kind":"profile","sub"} frame; new GET /directory/live (Basic
  app pair) streams retry hint, keep-alive comments, and event:profile
  rows. notify_profile fires after every user-mutation commit: photo
  upload and delete, admin email edit, disable/enable, invite
  acceptance, confirmed email change.
- im-client gains a directory module: DirectoryClient (roster, photo,
  live stream with a hand-rolled SSE parser), DirectoryEvent, and
  spawn_sync's full-pass/stream loop with 1s..30s backoff and resync.

2026-09-05

2026-09-03

feat: server-side sessions with instant revocation, admin panel, sealed mail settingsAhmet Kaan Gümüş · 963c897
feat: server-side sessions with instant revocation, admin panel, sealed mail settings

- app_sessions table: opaque tokens introspected per request against im;
  no token-validity window — an admin revoke or a disabled account is dead
  on the very next call
- sessions::revoke_user_sessions cascades central sessions, refresh tokens
  and app sessions; disable also revokes
- POST /introspect (RFC 7662); token exchange carries an app_session
  alongside the OIDC tokens; im-client drops its refresh-token logic for it
- /admin panel: People (invite, admin flag, disable/enable, sign out
  everywhere), Mail (SMTP in the settings table, password sealed under
  im.key — deployment facts stay in im.toml, secrets never), Logs (audit
  events: invites, enrolments, logins, revocations, exchanges)
- CLI: im-web invite <email> [--admin], im-web revoke <email>
- events + settings tables; login/logout/TOTP/invite/exchange audit logging

Verified live: admin invited user2 from the panel, user2 enrolled and
entered the demo app silently; admin revoked user2 and the very next demo
request was signed out (no ghost window); logs show the whole trail.
feat: OIDC single sign-on — provider, client crate, izlek migrationAhmet Kaan Gümüş · d7200e0
feat: OIDC single sign-on — provider, client crate, izlek migration

- im-core: turso store (users, invites, sessions, OIDC clients, auth codes,
  refresh tokens, signing keys), argon2 passwords ported from izlek-core,
  RFC 6238 TOTP (hmac 0.13 + sha1 0.11), hand-rolled RS256 JWT over rsa 0.9,
  XChaCha20-Poly1305 sealing under im.key
- im-web: topcoat server — login / TOTP / invite / enroll pages in İzlek's
  instrument skin (style/main.scss, grass build.rs), OIDC authorize + token +
  userinfo + JWKS + discovery, CLI: invite, create-client
- im-client: drop-in OIDC client for topcoat apps — PKCE S256, JWKS-validated
  id_tokens, transparent refresh rotation, encrypted session cookie, demo
  example app
- im-migrate: one-time izlek.db import, argon2 hashes verbatim, mapping CSV

Verified live in a browser: invite -> password -> TOTP enrolment (QR) ->
demo app OIDC handshake (silent via central session) and a full interactive
password+TOTP login landing on the app's protected page with claims.