Repository navigation
theAuth 0.7.1
theAuth 0.7.1
Fixes
- Resolve the client IP through the trusted proxy helper.
- Scope management routes to the signed in owner when the default guard is used. With the default session resolver,
/agents,/delegations,/audit,/dashboardandPOST /authorizeonly act on the caller's own agents, delegations and audit rows, andPOST /agentsrequiresownerIdto be the caller. A customauthenticateresolver behaves as before. Core addsguard.resolve()and theAdapterScopehelper so the other adapters can adopt the same checks, andaudit.export()accepts auserIdfilter. - Upgrade notes for this release. With the default session guard, a signed in user is limited to their own agents, delegations and audit rows, so an app that used the default guard as a shared admin view must pass an
authenticateresolver that checks admin rights. The adapters and the gateway no longer readX-Forwarded-FororX-Real-IPthemselves: passtrustedProxy: { trustedProxyCount }ortrustedProxy: { trustedHeader }to match your proxy, otherwise anipAllowlistconstraint denies because the client IP is unknown. The captcha helper no longer trustsCF-Connecting-IPunconditionally, usetrustedProxy: { trustedHeader: "cf-connecting-ip" }to keep it. Adapters require@glinr/theauth0.7.1 or newer. - Resolve the client IP through the trusted proxy helper. The hono and express adapters no longer read
X-Forwarded-FororX-Real-IPdirectly. By default forwarded headers are ignored (Express still falls back toreq.ip), so anipAllowlistconstraint denies when the IP is unknown. PasstrustedProxy: { trustedProxyCount }ortrustedProxy: { trustedHeader }to the adapter to match your proxy setup.
Packages in this release
| Package | Version | Changelog |
|---|---|---|
@glinr/theauth |
0.7.0 to 0.7.1 | CHANGELOG |
@glinr/theauth-astro |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-cli |
0.3.0 to 0.3.2 | CHANGELOG |
@glinr/theauth-express |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-fastify |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-gateway |
4.0.0 to 4.0.2 | CHANGELOG |
@glinr/theauth-hono |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-mcp |
0.2.0 (new) | CHANGELOG |
@glinr/theauth-nestjs |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-nextjs |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-nuxt |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-solidstart |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-sveltekit |
5.0.0 to 5.0.1 | CHANGELOG |
@glinr/theauth-tanstack |
5.0.0 to 5.0.1 | CHANGELOG |
theauth |
0.2.1 (new) | CHANGELOG |
Install
npm install @glinr/theauth@0.7.1Go: go get github.com/glincker/theauth-go/v2 (releases: https://github.com/glincker/theauth-go/releases). Docs: https://docs.theauth.dev
Full changelog: v0.7.0...v0.7.1
Discussion: https://github.com/glincker/theauth/discussions/172