Commit Graph
151 Commits
Author SHA1 Message Date
Gabriel20xx 2d8f138215 Add CarrierNode project attribution 2026-09-18 11:21:06 +02:00
Gabriel20xx 87cb39c04c feat: allow project selection when creating users 2026-09-17 00:15:19 +02:00
Gabriel20xx 51eef30971 feat: honor project login requirement in shared auth 2026-09-17 00:14:56 +02:00
Gabriel20xx 78067cc890 feat: use dropdown for primary color setting 2026-09-16 23:58:00 +02:00
Gabriel20xx 94a5c0b9ae fix: make wide page preference affect shared shell 2026-09-16 23:38:03 +02:00
Gabriel20xx e4c1826d6a Support pushed CarrierNode credentials 2026-09-16 19:52:57 +02:00
Gabriel20xx 4b0566ea46 Share optional ComfyUI endpoint in core config 2026-09-16 11:50:55 +02:00
Gabriel20xx b012d585f8 Expose ProjectConfigurator URL in core config 2026-09-16 10:54:19 +02:00
Gabriel20xx ddcf2fd78d Show missing SECRET in auth status 2026-09-15 23:26:02 +02:00
Gabriel20xx 0e450d53de feat: migrate project secrets and user-scoped colors 2026-09-15 13:23:17 +02:00
Gabriel20xxandClaude Sonnet 5 dcfdb3d7af Make AuthGuard integration decouple from knowing the URL at startup
Every language's AuthGuard client/service used "no URL at construction"
to mean "auth disabled forever" - a live SetBaseUrl/setBaseUrl push from
ProjectConfigurator could only ever retarget an *already-enabled* client,
never turn one on for the first time. That made AUTHGUARD_URL a de-facto
required env var everywhere, even though ProjectConfigurator can push it
live after startup.

- Go: shared/backend/auth's New/NewWithStore now default to a "pending"
  Service (still enabled, fails closed until a URL arrives) instead of
  disabled when authGuardURL is empty; add an explicit Disabled() option
  for the genuine standalone/local-dev opt-out.
- Python/Node/Java: add setBaseUrl/set_base_url to each AuthClient so a
  client built with an empty base URL can be retargeted in place once a
  URL is pushed, the same as the Go client already supported.
- Python/Node: add a coreconfig module (Info/Store), the framework-agnostic
  equivalent of shared/backend/coreconfig (Go), for services in those
  languages to receive ProjectConfigurator's core-services push at all.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 09:35:45 +02:00
Gabriel20xxandClaude Sonnet 5 c09957189f Add shared_backend.authproxy: FastAPI AuthGuard-proxy engine
Extracted from three near-identical bespoke implementations (Heretic,
HordeWorker, InfiniteVideo), each ~800-1000 lines hand-rolling the same
status/setup/login/logout/TOTP/admin-user-CRUD proxy around AuthClient.
build_auth_router(get_client, get_store) returns a ready-to-mount
APIRouter matching shared/backend/auth (Go)'s Service response shapes.
Gated behind an optional `fastapi` extra so the rest of this
framework-agnostic package is unaffected. 18 new tests, including a
regression test for a real bug this had (request models nested inside
build_auth_router silently broke under `from __future__ import
annotations`, misrouting every JSON body as a missing query param).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 21:27:54 +02:00
Gabriel20xxandClaude Sonnet 5 f58579290d Add project-key support to Python/Node/Java AuthClient equivalents
Mirrors Go's authclient.WithProjectKey: each client now accepts a
project_key/projectKey and sends it as X-Project-Key on every request,
so AuthGuard can enforce per-user project-access restriction for
consumers written in these languages too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 21:08:49 +02:00
Gabriel20xxandClaude Sonnet 5 5364588ba0 Merge mediaauth into shared/backend/auth as the unified auth-proxy engine
mediaauth was its own package only because "auth" was already taken by
this package's lower-level Store/User/Role layer. Since mediaauth is no
longer media-family-specific (see the earlier "unified auth proxy"
generalization), it now lives directly in this package instead, renamed
where it collided with existing exports: mediaauth.User -> ProxyUser,
mediaauth.Store -> ProxyStore (this package's own local-account Store is
unrelated and keeps its name). Service/New/NewWithStore/UserFromContext
and the rest keep their names. mediacore.go updated to match.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 18:43:16 +02:00
Gabriel20xxandClaude Sonnet 5 c9737d1f9f mediaauth: expose SetAuthGuardBaseURL for live AuthGuard-URL retargeting
A project built via NewWithStore previously had no way to react to
ProjectConfigurator's live authguard_url push (coreconfig.Store.OnUpdate)
the way a project holding its own *authclient.Client directly could via
SetBaseURL - this closes that gap without exposing the client itself.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 12:30:19 +02:00
Gabriel20xxandClaude Sonnet 5 a5eb37a823 Add changeset for UserManagement's project-access picker
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 12:20:56 +02:00
Gabriel20xxandClaude Sonnet 5 663d498a03 Add per-user project-access restriction; generalize mediaauth into a unified auth proxy
shared/backend/auth: adds SchemaOptions.ProjectScoping and Store methods
(SetUserProjects/UserProjects/UserProjectsByUser/IsProjectAllowed,
SetKnownProjects/KnownProjects) backing AuthGuard's new per-user
project-access restriction.

shared/backend/authclient: Client can now identify its calling project to
AuthServer via WithProjectKey (sent as X-Project-Key on every request), so
AuthServer can enforce the restriction above per project.

shared/backend/mediaauth: generalized from a media-family-only package
into the one shared auth-proxy engine every AuthGuard-integrated project
should use. New accepts a projectKey; the login-required/setup-claim
storage it needs is now expressed as a small Store interface
(NewWithStore lets any project's own storage satisfy it, not just the
media family's shared `settings` table, which pgSettingsStore still backs
for existing callers). ManagedUpdateUser/ManagedDeleteUser now resolve
their {id} path param via chi.URLParam OR the stdlib 1.22+ ServeMux's
PathValue, so non-chi consumers work unchanged.

packages/web-ui: UserManagement gains an optional `projects` prop (a
per-account project-access picker), used only by AuthGuard's own admin UI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-13 12:16:17 +02:00
Gabriel20xx 6ac2fcefeb Normalize all button/input/select/dropdown heights to 2.5rem
Button size variants (sm 2rem, lg 2.875rem), sc-input/sc-select (2.6rem),
and the pagination controls (2.1rem/2.25rem) each rendered at a different
height, so any row mixing them (a select next to a button, a page-size
dropdown next to pagination buttons) was visibly misaligned. Textarea
keeps its own min-height since it's multi-line by design.
2026-09-13 10:47:00 +02:00
Gabriel20xxandClaude Sonnet 5 d4d2c49538 Fix mobile header menu button jumping position on toggle
The button's top offset was unset, so its absolute-position static
position was recomputed from the flex-wrap layout whenever .sc-nav
wrapped onto its own row on open, causing a visible vertical jump.
Pinning top to the header's mobile padding keeps it stationary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 23:03:36 +02:00
Gabriel20xxandClaude Sonnet 5 9f64bdc591 Fix pagination page-size dropdown showing blank on load
The select's value was coerced to a string via String(pageSize) while
the <option> values are numbers. Svelte 5 matches a non-bound <select>
value against each option's stored value with Object.is, so "24"
never matched 24 and the dropdown rendered with no option selected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 16:29:25 +02:00
Gabriel20xxandClaude Sonnet 5 a675899c7d Rename MediaKiosk references to KioskDisplay
The service was renamed but comments and a couple of legacy project-name
lists in the shared library still referred to it as MediaKiosk.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 15:48:17 +02:00
Gabriel20xxandClaude Sonnet 5 a998844c11 Add missing sc-pagination styles for the shared Pagination component
The component's markup used sc-pagination* classes that had no
matching rules anywhere in the shared stylesheet, so it rendered
unstyled in every consumer.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 23:40:08 +02:00
Gabriel20xxandClaude Sonnet 5 965910eecc Add pagination controls to UserManagement
Uses the shared Pagination component instead of rendering every
fetched user in one unpaginated list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 23:25:25 +02:00
Gabriel20xxandClaude Sonnet 5 097442f4b0 Make carriernodeclient.Client.Proxy fail over across CarrierNode instances
Proxy (streaming playback/thumbnails straight through) was left primary-only
when NewMulti was added, but it's a per-file read like Probe/FetchToScratch/
ProbeMedia, not a write - a file living only on a non-primary CarrierNode
instance couldn't actually be played back. Try each configured instance in
order and stream from the first one that doesn't answer with an error,
forwarding the last instance's response (success or error) if none do.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 11:56:55 +02:00
Gabriel20xxandClaude Sonnet 5 9f78995d03 Support multiple CarrierNode instances in carriernodeclient/coreconfig/mediacore
ProjectConfigurator's Projects workspace already lets an operator register more
than one CarrierNode instance (separate storage backends, HA/failover replicas,
or a mix), but every consumer only ever read a single carriernode_url. Add
carriernodeclient.NewMulti (ListFiles merges across instances, Probe/
FetchToScratch/ProbeMedia try each in order, writes stay primary-only),
coreconfig.Info.CarrierNodeURLs for pushed consumers, and
mediacore.CarrierNodeURLs for the 7 services that read settings directly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 11:37:56 +02:00
Gabriel20xxandClaude Sonnet 5 87ac5ed25a Fix header profile dropdown About link showing default anchor color
The About item falls back to an <a> when no onAbout handler is wired.
The :visited fix only covered post-click state; the unvisited a:link
pseudo-class still beat the .sc-profile-menu-item class in specificity,
making the item look lighter/whiter than the button-based items until
clicked once.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 09:16:11 +02:00
Gabriel20xxandClaude Sonnet 5 f00f9f3c03 Add coreconfig package and authclient.SetBaseURL for ProjectConfigurator's core-services push
ProjectConfigurator now pushes AuthGuard's/CarrierNode's current URLs to
every project it registers instead of each hardcoding them forever.
coreconfig.Store/Handler is the receiving end any Go service vendors;
authclient.Client.SetBaseURL lets an existing client be retargeted live
when a fresh push arrives, with no restart.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 11:53:04 +02:00
Gabriel20xxandClaude Sonnet 5 3131937af2 Add mediaauth.Service.SetLoginRequired for cross-service login pushes
Lets a trusted internal caller (ProjectConfigurator's central "Require
Login" toggle) set a service's auth_required flag directly, without an
admin session - UpdateAccessSettings now delegates to it too.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 22:24:03 +02:00
Gabriel20xxandClaude Sonnet 5 8d7d6ee35b Add a 32-color curated brand palette reference
Documents the hue-spaced palette used to give every project in the
workspace a unique webui primary color: which colors are claimed by
which project, and which remain reserved for future projects.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 20:48:52 +02:00
Gabriel20xxandClaude Sonnet 5 56e2f60531 Make the auth screen's password field optional; catch up UserManagement drift
AuthPage's password (and, in setup mode, confirm-password) field no
longer forces a non-empty value client-side -- the server already
enforces the real rules (a correct password to log in, >=8 chars to
register/bootstrap), so this only replaces a native browser validation
popup with the server's own error message.

Also bring UserManagement in line with an AuthGuard-only edit that had
drifted ahead of this source (username/email/password relaxed to "at
least one of username/email, password optional" for admin-created
users) so the next consumer sync doesn't silently revert it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 16:52:45 +02:00
Gabriel20xxandClaude Sonnet 5 ae792cbf43 Add OmniLogger as a sync-consumers.ps1 consumer project
OmniLogger now vendors shared/ (webui, auth, authclient, authproxy), so it
needs to receive updates the same way Core/AuthGuard and the other Go+Svelte
consumers do.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-08 17:10:34 +02:00
Gabriel20xxandClaude Sonnet 5 992fbda39c Finish Forks->Fork rename: HordeWorker moved to Fork/HordeWorker
The directory was locked by two stray python http.server processes
and a hung git push waiting on GitHub credentials, all left over from
earlier work in this session - killed with the user's approval, which
freed it up to move like the other three fork projects already had.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 16:20:29 +02:00
Gabriel20xxandClaude Sonnet 5 c5c3ec3d9f Update path references for Central->Core, Forks->Fork rename
The workspace's Central/ and Forks/ parent folders were renamed to
Core/ and Fork/ (singular) - a pure local filesystem reorganization,
git repos don't care about their own absolute path. Updates
sync-consumers.ps1's consumer list and workspace-root detection, plus
doc-comment/README cross-references that hardcoded the old paths.

HordeWorker's entry stays at the old 'Forks/HordeWorker' path for now:
a long-running process holds that directory open, so it couldn't be
moved to Fork/HordeWorker in this pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 16:00:08 +02:00
Gabriel20xxandClaude Sonnet 5 d1a02a8c4d Extract shared media backend library; remove dead multi-flavor app/binary
Adds mediaauth/mediacore/carriernodeclient/syncsocket packages under
backend/, extracting everything genuinely cross-service (auth, shared
media/tags/playlists/sync/profile routes, the CarrierNode HTTP client,
the playback-sync websocket hub) out of the old media-backend monolith.

The 7 media-family services (CarrierNode, ContentScanner, CraftStudio,
MediaViewer, MediaKiosk, ModerationHub, ProjectConfigurator) each now
have their own independent frontend and backend built on this library,
instead of sharing one generic multi-flavor webui/media-backend
selected by a MEDIA_SERVICE/VITE_MEDIA_APP flag. That generic app and
binary (webui/, media-backend/) are now dead and removed here, along
with their dedicated CI workflows. sync-consumers.ps1 and README.md
updated to describe the new architecture.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 15:06:06 +02:00
Gabriel20xxandClaude Sonnet 5 2e6baaa70c Add wide-page layout toggle; rename MediaAnalyzer/MediaTools/LoggingServer
Adds a new persisted "wide page" preference (theme/language-style store,
settings-dialog checkbox, main-content width override) alongside the
existing theme switcher and language selector.

Also completes three project renames throughout the shared source:
MediaAnalyzer -> ContentScanner, MediaTools -> CraftStudio, and
LoggingServer -> OmniLogger, across the Go media-backend service enum,
webui AppId/app-config/project-icons, renamed feature components, and
the sync-consumers.ps1 consumer list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 22:50:38 +02:00
Gabriel20xxandClaude Sonnet 5 4cca0ddf72 Fix stale MediaServant project entry surviving the CarrierNode rename
The configured_central/main rename to CarrierNode only ran when both
lists were still empty, so an already-populated list kept the old
MediaServant entry and gained a duplicate CarrierNode one. Also
migrate the per-project JSON blobs (labels, login, mounts, tab meta)
keyed by the old name so their data isn't orphaned.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 21:02:27 +02:00
Gabriel20xxandClaude Sonnet 5 ee59571552 Rename ProjectConfigurator, restructure Projects workspace, retire MediaCollection naming
- Rename MediaConfig -> ProjectConfigurator throughout; drop the Parameters
  tab/page; rename the Mounts tab to Projects and restructure it into three
  sections: Central services, Main services, Third-party services
- Add a self-describe contract (GET /api/info returning name/tabs/mountTypes)
  and a server-side discovery proxy (POST /api/discover-service) so adding a
  main service only requires a URL
- Add ProjectConfigurator HA: multiple instances now sync their settings with
  each other (GET /api/settings/export, POST /api/settings/sync, a periodic
  background puller), last-write-wins per key by updated_at
- Add a generic, project-agnostic file-storage API on CarrierNode
  (GET/POST/DELETE /api/mount/{project}/{type}[/*]) driven by the same
  configured_mounts data the Projects workspace already writes, usable by any
  registered project, not just the media family
- Add last_login_at tracking to the shared auth Store/User (schema, queries,
  UpdateLastLogin) and surface it through the shared web-ui ManagedUser type
  and UserManagement component
- Retire the "MediaCollection" name: Go module -> repos.gfranz.ch/Gabriel20xx/shared/media-backend,
  binary -> mediabackend, session cookie default -> "session", media-webui
  merged into webui, media-shared-assets renamed to legacy-assets and pruned
  to the one file MediaDesktop still uses

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-04 15:02:16 +02:00
Gabriel20xxandClaude Sonnet 5 07cf3308da Remove Admin option from header profile dropdown
User management is now centralized in AuthGuard's webui, so the
per-project Admin dialog (user CRUD + require-login toggle) is
redundant. The require-login toggle will move to ProjectConfigurator
in the future.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-04 09:29:23 +02:00
Gabriel20xxandClaude Sonnet 5 72c3ba028c Fix ruff formatting in authclient test_authclient.py
Reformat the new scheme-detection test cases with `ruff format` (line
length) so `ruff format --check .` passes in consumers that lint the
whole repo, e.g. Heretic/HordeWorker's CI.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 22:22:21 +02:00
Gabriel20xxandClaude Sonnet 5 449bb6fd6a Auto-detect scheme for AUTHGUARD_URL instead of always assuming https
A bare host:port (e.g. a LAN AuthGuard reachable only over plain HTTP)
was always defaulting to https, so a TLS handshake against a plain-HTTP
AuthGuard failed at the transport level. Now a loopback, RFC1918/RFC4193
private, or link-local host (or a .local name) defaults to http instead;
an explicit http:// or https:// is still always honored as-is.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 21:46:53 +02:00
Gabriel20xx 730bf0463f Double sc-page-header bottom margin 2026-09-03 19:56:56 +02:00
Gabriel20xx 7b5a4e6c2c Merge media-webui/media-backend into the general shared component/backend system
Extracts a new backend/authproxy package for the AuthGuard-proxy helper
functions (session cookie handling, input normalization, error
translation) that Bitmagnet/GameStream/media-backend/AutoCode/
CollabTable/PubliSafe/SimpleCollection/SyncServer/UnraidMonitor/
OutdoorGames were each independently reimplementing, and repoints all
of them onto it.

Extends packages/web-ui's Button/Badge with the variants media-webui
needed (outline, icon size, primary badge) and promotes EmptyState/
SectionTitle/Metric/StatusWidget/StatusDialog into the shared library,
then migrates media-webui off its own diverged ui/{button,card,badge,
metric} components and local duplicates of the promoted components
onto @gabriel20xx/web-ui, so media-webui is a proper consumer of the
same design system every other project already uses instead of a
parallel fork.

Also removes the dead `desktop`/MediaDesktop service variant from
media-backend and media-webui (MediaDesktop is an Electron client that
never actually runs this stack).
2026-09-03 00:14:01 +02:00
Gabriel20xx 9589d07baf media-backend/media-webui: proxy admin login identity to AuthGuard
The media-collection family (KioskDisplay, MediaAnalyzer, MediaTools,
MediaViewer, MediaServant, ModerationHub, ProjectConfigurator) shared one
standalone local single-admin auth implementation with no AuthGuard
connection, including its own local "reset admin account" flow - the same
situation the recently-migrated forks were in. Proxies every /auth/... and
/api/auth/... admin-identity operation to AuthGuard via the existing Go
authclient, forwards its Set-Cookie, keeps a local one-time setup-claim flag
(reusing the existing settings table, no schema change), and drops the local
reset flow entirely (only AuthGuard's own web UI keeps one now).

Deliberately left untouched: the separate "moderator manages platform
users" surface (admin_storage.go's mountModeratorRoutes) and the
independent loginRequired/auth_required public-install toggle, both of
which are unrelated to this service's own admin login identity despite
superficially sharing code style/table with the migrated pieces.
2026-09-02 21:45:19 +02:00
Gabriel20xx de9b599232 authclient: auto-detect https for a bare AUTHGUARD_URL host, extend Java client to full surface
AUTHGUARD_URL only needs to name a host/IP now - all four language
clients (Go/Node/Python/Java) assume https:// when no scheme is given,
so a bare value like 192.168.1.50:8080 works instead of failing
outright; an explicit http://scheme is still left alone for local/LAN
deployments.

Java's AuthClient was validate-only; it now mirrors the Go/Node/Python
clients' full surface (register/login/logout/me/totp*/passwordReset*/
managedUsers*/setupStatus) using Jackson for the request/response JSON
this larger surface has to build and parse, since MegaBasterd (this
package's only verified consumer) already depends on Jackson.
2026-09-02 20:49:29 +02:00
Gabriel20xxandClaude Sonnet 5 f164e0d0d2 Halve sc-page-header gap to the content below it
margin-bottom: 1rem left too much empty space between the title card
and the cards/content on the page. Reduce to 0.5rem.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 17:35:26 +02:00
Gabriel20xxandClaude Sonnet 5 f5a20b72af Extend Go/Python/Node authclient with the full AuthGuard API surface
Previously each authclient only supported GET /api/session/validate - the
"just gate requests behind a valid session" case. A service that runs its
own login/register/admin-user-management screens proxied to AuthGuard
(GameStream's pattern, now also used by InfiniteVideo and OutdoorGames)
needs much more: register, login, logout, me, totp_enable/verify/disable,
password-reset request/confirm, and managed-user list/create/update/delete.

The Go client already had this full surface from GameStream's original
migration; Python and Node only had validate(), so both gained the same
method set as Go, mirroring its behavior and JSON wire shapes exactly
(register/login/logout return the raw Set-Cookie values to forward,
totp_required surfaces on a 401 from login, etc). Also adds a SetupStatus/
setup_status/setupStatus method (GET /api/setup-status) so a service's own
first-launch flow can tell whether AuthGuard already has an account before
showing its own account-creation form, and adds totp_enabled to the Go
client's PublicUser (AuthGuard has reported it for a while; the client
just hadn't picked it up).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 10:37:21 +02:00
Gabriel20xxandClaude Sonnet 5 db733a6bf4 Fix critical login/session bug: Store.find() Scan missing Role column
Store.find() (backing FindByIdentifier - used by login - FindByID, and
FindSessionUser, used on every authenticated request) selected 7 columns
but only Scan()'d 6 destinations, missing &user.Role entirely:

  find user: find auth user: number of field descriptions must equal
  number of destinations, got 7 and 6

This broke essentially all login and session validation, in every project
vendoring this package, against a real Postgres database. It went
undetected because the existing test suite uses a hand-written fake store
in each consumer's own httpapi package that never exercises the real
query/Scan pair - only a real driver round-trip surfaces a
destination-count mismatch like this.

Adds backend/auth/store_integration_test.go (skipped unless DATABASE_URL
is set, so it never runs in default CI) covering create, find-by-identifier,
find-by-id, find-by-session, and list-users against a real database, to
catch this class of regression going forward. Verified against a real
Postgres container: reproduced the exact reported error before the fix,
passes after.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 21:51:15 +02:00
Gabriel20xxandClaude Sonnet 5 bdcdfc2dbe Add Central/AuthGuard to sync-consumers.ps1
AuthGuard grew its own web UI (@gabriel20xx/web-ui-based admin dashboard),
so it now vendors the full shared snapshot the same way every other
consumer with a frontend does, not just shared/backend.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 17:38:22 +02:00
Gabriel20xxandClaude Sonnet 5 a2454812f9 Rewrite README for consistency and accuracy across the workspace
Brings this repo's README in line with a shared house style (Tech
Stack table, Repository Layout, Configuration table, Quick Start,
Development, Testing, CI/CD) and fixes staleness accumulated since it
was last written - outdated auth model descriptions, stale directory
names, dead references to removed code, and CI details that no longer
matched the actual workflow files.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 16:11:58 +02:00
Gabriel20xxandClaude Sonnet 5 d2ad20e0f8 Fix ty type error in authclient test: HTTPError needs a Message, not None
urllib.error.HTTPError's stub declares hdrs: Message (non-optional);
passing None works at runtime but fails strict type checking. Heretic's
lint workflow runs ty over its full tree including the vendored shared/
snapshot, which is what caught this - construct an empty Message()
instead, identical runtime behavior.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 11:23:21 +02:00