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.
Shared Go backend packages
The Go packages under this directory hold infrastructure shared by the services, not application-specific SQL or HTTP handlers.
config— environment string, required value, boolean, integer, and duration helpers.postgres— validatedDATABASE_URLconfiguration,pgxpoolcreation/ping, transaction wrapper, and PostgreSQL error classification.auth— shared bcrypt policy, secure token generation/hashing, account/session schema, and account/session persistence.authclient— HTTP client andnet/httpmiddleware for services that adopt the centralized AuthServer instead of embeddingauthagainst their own database.migrate— embedded filesystem adapter for Goose migrations.logshipper— client adapter for LoggingServer (Web/LoggingServer): batches and ships log entries centrally while mirroring the same human-readable output and Debug/Info/Warn/Error/Critical/Audit/*Ctx method surface as each project's local internal/logging package.
Run go test ./... and go vet ./... from this directory. The module path is
repos.gfranz.ch/Gabriel20xx/shared/backend; change it if the shared folder is
hosted under a different repository path.
Application-specific table definitions and HTTP behavior stay in the service. That lets a service reuse reliable connection/auth plumbing without coupling its domain model to another project.