Skip to content

Releases

v2.13.0

Choose a tag to compare

@thegdsks thegdsks released this 31 Oct 03:35
19df0f6

2.13.0 (2026-10-31)

Features

  • password: add WarmDummyHash to compute the dummy hash at startup (#329) (3f1db2a)

v2.12.1

Choose a tag to compare

@thegdsks thegdsks released this 31 Oct 03:02
9166ab3

2.12.1 (2026-10-31)

Performance Improvements

  • password: compute the dummy hash on first use (#327) (1ff6721)

v2.12.0

Choose a tag to compare

@thegdsks thegdsks released this 18 Oct 07:24
1e67b39

2.12.0 (2026-10-18)

Features

  • bring agent features level with the TypeScript library (#311) (2b036e3)

v2.11.0

Choose a tag to compare

@thegdsks thegdsks released this 17 Oct 06:20
c9a1a14

2.11.0 (2026-10-17)

Features

  • agent accountability with tri-state policy decisions, revocation cascade and chained audit records (0411c9d)
  • cascade agent revocation and chain audit decision records (ad71b90)
  • chain audit events on Postgres and MySQL (2bb4f23)
  • framework agnostic tool guard with single use approvals (974c73f)
  • policy shrink for Go, find unused grants and verify a smaller policy against recorded decisions (978eef1)
  • signed audit checkpoints, merkle proofs and receipts for Go, verified against the TypeScript implementation (1dadfab)
  • sqlite: implement organization, SAML, SCIM and RBAC storage (7e1d482)
  • sqlite: organizations, SAML, SCIM and RBAC storage (9c1440e)
  • storage backed single use tool approvals for memory, sqlite, postgres and mysql (25cb01a)
  • store the agent id on minted agent tokens (ebb3dd4)
  • taint aware tool guard with provenance labels recorded in the audit chain (015623e)
  • tier 1 adoption batch (theauth dev, token vault, approvals inbox, presets) (#285) (cade630)
  • tri-state policy decisions with risk tiers (fbffe26)
  • wave 10, required claim matchers, GitHub Actions OIDC and opaque tokens in mcpresource (#283) (784e98e)
  • wave 8, tool guard with storage backed approvals, agent token ids, audit chain on Postgres and MySQL (dd45b24)
  • wave 9, OAuth 2.1 server on SQLite, host consent, session auth methods and per agent policy (#282) (2dc8c1e)

Bug Fixes

  • bound audit shutdown, harden ratelimit, mysql sessions, delegation revoke and ignored errors (f756160)
  • fail closed on unparsable grant ids and harden audit, session and policy hot paths (9f42123)
  • read interop fixtures from fixed paths instead of command line arguments (a39fc96)
  • scim: revoke sessions when a user is deactivated or deleted (1e204d5)
  • scim: scope session revocation to the deprovisioned organization (a6170ad)

v2.10.0

Choose a tag to compare

@thegdsks thegdsks released this 14 Oct 00:57
4399e73

2.10.0 (2026-10-14)

Features

  • account lifecycle, step-up auth context, client compat, oidc presets and gin, echo, fiber adapters (#261) (3fa4995)
  • add Admission middleware with tiered rate limits and cross-site check (77f6972)
  • add linear, paypal, kick, huggingface, vercel, yandex and cognito providers (#266) (1991df8)
  • add optional revocation checker to mcpresource (5f3da08)
  • add signals package for SSF 1.0 SETs, transmitter and receiver (a2bf968)
  • add sqlite device identity storage (17bc401)
  • constrained device tokens for IoT phase 0 (#269) (4bfbf49)
  • openid provider surface, device follow-ups and mcpresource revocation hook (4140131)
  • OpenID Shared Signals Framework 1.0 with CAEP and RISC (c742897)
  • persist oidc client metadata on oauth clients (08769f3)
  • persist shared signals streams in sqlite and postgres (0655abb)
  • rate limit device enrollment and assertion grants per device (3b761d2)
  • request admission parity (tiered rate limits, cross-site check) (596b272)
  • serve id tokens, userinfo and logout as an openid provider (1b0b2ce)
  • wire shared signals into Config with audit driven emission (aa35eef)

Bug Fixes

  • keep end_session state after the query marker (1f2014f)
  • redirect end_session to the registered uri string (5c96ccb)
  • repair the postgres and mysql test harnesses and two real defects behind red main (#265) (25e8f7d)

v2.9.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 17:23
817822b

Changelog

New features

  • : feat: fire lifecycle hooks on every sign-in and mfa path and add hook examples (#241) (@thegdsks)

Bug fixes

  • : fix: bump x/text and x/net to patched versions, tidy example modules (#247) (@thegdsks)
  • : fix: convert user id with String in the oauth-apple and oauth-x examples (#248) (@thegdsks)

Verify this release

# Download the SBOM and its Sigstore signature from the release assets, then:
cosign verify-blob \
  --certificate-identity "https://github.com/glincker/theauth-go/.github/workflows/release.yml@refs/tags/v2.9.0" \
  --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
  --signature theauth-go-v2.9.0.tar.gz.sbom.json.sig \
  --certificate theauth-go-v2.9.0.tar.gz.sbom.json.cert \
  theauth-go-v2.9.0.tar.gz.sbom.json

Use this library: go get github.com/glincker/theauth-go/v2@v2.9.0

Discussion: https://github.com/glincker/theauth/discussions/172

v2.8.0

Choose a tag to compare

@github-actions github-actions released this 09 Oct 22:38
6b3b5a1

Changelog

Bug fixes

  • : fix: grant discussions write to the release-discussion reusable job (#227) (@thegdsks)
  • : fix: harden authorization server (DPoP-bound refresh, hashed codes, revoke ownership, redirect allowlist, CIMD caps) (@thegdsks)
  • : fix: name the cosign signature and certificate outputs so releases upload a .cert (#218) (@thegdsks)
  • : fix: webhook timestamped signatures, mcpresource typ and JWKS stale bound, argon2 rehash, secure cookie default, threat model and changelog (@thegdsks)

Performance

  • : perf: bound argon2id concurrency, one-query session lookup, keycloak migration (#239) (@thegdsks)

Other changes

  • : ci: sync releases to shared monthly discussion, add welcome and stale bots (#223) (@thegdsks)

Verify this release

# Download the SBOM and its Sigstore signature from the release assets, then:
cosign verify-blob \
  --certificate-identity "https://github.com/glincker/theauth-go/.github/workflows/release.yml@refs/tags/v2.8.0" \
  --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
  --signature theauth-go-v2.8.0.tar.gz.sbom.json.sig \
  --certificate theauth-go-v2.8.0.tar.gz.sbom.json.cert \
  theauth-go-v2.8.0.tar.gz.sbom.json

Use this library: go get github.com/glincker/theauth-go/v2@v2.8.0

Discussion: https://github.com/glincker/theauth/discussions/172

v2.7.1

Choose a tag to compare

@github-actions github-actions released this 07 Oct 05:34
974b118

theauth-go v2.7.1

Docs: https://docs.theauth.dev/go . Full list: CHANGELOG.md.

This is a security fix. If you use the authorization server with private_key_jwt client authentication or trusted JWT issuers, upgrade.

go get github.com/glincker/theauth-go/v2@v2.7.1

Upgrade notes

  • JWKS URLs must use https. Plain http is refused unless JWTBearerConfig.AllowPrivateJWKSNetworks is set.
  • JWKS hosts that resolve to loopback, private, link-local, CGNAT or cloud metadata addresses are refused. Local development and tests that serve a JWKS from localhost need AllowPrivateJWKSNetworks: true, or an injected JWKSHTTPClient.
  • Redirects are not followed. A JWKS URL must serve the document directly.
  • Rotated keys are picked up after the cache TTL (JWKSCacheTTL, default 5 minutes).
  • CIMD fetch errors now start with safehttp: instead of cimd:. errors.Is still works.

What was wrong

The server fetched a client's jwks_uri or a trusted issuer's JWKSURL with a plain HTTP GET: no address check, no timeout, redirects followed, and a cache that never expired. A client that registered a jwks_uri pointing at an internal address could make the server connect there.

What changed

JWKS fetching now uses a guarded client (shared with CIMD in internal/safehttp). The address check runs at dial time, so DNS rebinding does not get around it. No proxy is used, requests time out after 5 seconds by default, the response must be status 200 and at most 512 KiB, and the cache expires entries after a TTL, holds at most 256 URLs by default, and never stores failed fetches. See PR #213.

New options on JWTBearerConfig

Option Default Purpose
AllowPrivateJWKSNetworks false Local development only. Permits private addresses and plain http.
JWKSCacheTTL 5 minutes How long a fetched JWKS is reused.
JWKSCacheMaxEntries 256 Maximum number of cached JWKS URLs.
JWKSFetchTimeout 5 seconds Total time allowed for one fetch.
JWKSHTTPClient guarded client Replaces the default client. It is used as is, so it must give equivalent protection.

Verify this release

The tarball and the SBOM carry a SLSA build provenance attestation from the release workflow:

gh release download v2.7.1 -R glincker/theauth-go -p 'theauth-go-v2.7.1.tar.gz*'
gh attestation verify theauth-go-v2.7.1.tar.gz --repo glincker/theauth-go

Each asset also has a cosign signature (.sig). The signing certificates were not attached to this release, so verify with the attestation above. This is tracked in a fix to the release config.

Install: go get github.com/glincker/theauth-go/v2@v2.7.1

Changelog

Bug fixes

  • : fix: guard JWKS fetches against SSRF and expire the JWKS cache (@thegdsks)
  • : fix: pin benchstat for Go 1.25, resolve bench base on dispatch and cron; chore: cut 2.7.0 changelog section (@thegdsks)
  • : fix: satisfy staticcheck in the JWKS fetcher and its test (@thegdsks)

Other changes

  • : Merge origin/main into chore/bench-workflow-and-changelog (@thegdsks)

v2.7.0

Choose a tag to compare

@thegdsks thegdsks released this 05 Oct 21:37
31d073c
  • OAuth: OAuthConfig.RedirectURI hook, RedirectURIAllowedHosts, AllowInsecureRedirectURI, own-route OAuthStart/OAuthCallback
  • WebAuthn: UserHandleResolver for imported passkeys with foreign user handles
  • Admin password reset now clears per-IP login backoff (LoginThrottleEntryDeleter)
  • Logs no longer contain email addresses (user_id or email_ref instead)
  • Password rehash fix: OnLegacyHashAccepted fires after a legacy bcrypt rehash

All API changes are additive.

v2.6.0

Choose a tag to compare

@github-actions github-actions released this 05 Oct 16:12
v2.6.0
3d6992d

Docs: https://go.theauth.dev/ . Full list: CHANGELOG.md. Questions and feedback: Discussion #192.

Upgrade notes

  • Module path is now github.com/glincker/theauth-go/v2. Update imports; the old path stays at v1.0.0. This is the first resolvable v2 tag. See the migration guide: https://go.theauth.dev/migrations/to-v2-module-path/
  • Login throttle is on by default. 429 with Retry-After, codes rate_limited or account_locked. Tune with Config.LoginThrottle.
  • Errors are JSON {"code","message"} instead of plain text. Status codes are unchanged.
  • TOTP verify and recovery routes rotate the session cookie.
  • The theauth_oauth_state cookie value no longer equals the state parameter.
  • OAuth callback refuses an email that matches an existing account unless the provider marks it verified.
  • An https BaseURL now yields Secure cookies.
  • EncryptionKey is required when ProviderResolver is set.
  • Device-request routes need the root ability by default (DeviceRequestsAbility, or DeviceRequestsAnySignedInUser).
  • Closed signup and Config.Bootstrap need UserCountStorage.
  • PasswordPolicy.AllowLegacyBcrypt is now honored.
  • The repository layout changed; no exported name was removed. The module root holds 15 Go files (it held 80), feature code is in internal/ packages and black-box tests are in integration/. Imports and calls are unaffected; %T and reflect print the aliased type, and go test on the root package no longer runs the integration suite (use ./...).
  • CIMD fetches refuse non-public addresses (a localhost CIMD setup needs CIMDConfig.AllowPrivateNetworks).
  • Authorization errors redirect only to a registered redirect_uri, and SAML RelayState is restricted (SAMLConfig.AllowedRelayStates).
  • Also: CSRF/Origin checks on cookie-authenticated writes (TrustedOrigins), 72 byte password cap, new migrations (Postgres and MySQL 0017 and 0018, SQLite 0006 to 0008).

Highlights

  • Storage capability interfaces and Config.CoreStorage; SQLite, Postgres and MySQL capability parity.
  • storage/sqlite adapter (experimental).
  • Scoped API tokens, RFC 8628 device grant, token self-service routes, device pending list.
  • clientauth for CLI login, agent identity tokens (MintAgentToken, RegisterAgent), revocation watcher.
  • policy JSON policy engine and RequirePolicy middleware.
  • Security doctor: Doctor, GET /auth/admin/doctor, cmd/theauth-doctor.
  • Config.PathPrefix, (*TheAuth).Handler(), Config.ProviderResolver, provider/oidc, Config.OAuth.
  • Session management, step-up re-auth, session links, passkey policy, AuthEventSink.

Security

  • Login throttle and per-user lockout, TOTP replay protection, per-user MFA guess caps.
  • First-run bootstrap with a one-time setup token, email canonicalization, password policy and optional HIBP check.
  • OAuth login CSRF binding and verified-email account linking.
  • SSRF guard on the CIMD client-metadata fetch (dial-time address check, no redirects); authorization error and SAML RelayState redirects validated.
  • Fix: synced passkeys (backup-eligible flag) can sign in again.

Stability

New and Experimental in this release: storage/sqlite, clientauth, policy, the agent identity and revocation APIs, Doctor, Config.ProviderResolver, and the new optional storage capabilities (sessions, API tokens, device codes). Only the storage capability split, Handler() and Config.PathPrefix are Stable. See STABILITY.md.

Full commit list

Changelog

New features

  • : feat(sqlite): implement API token, device code, session, MFA and throttle capabilities (@thegdsks)
  • : feat(storage): add pure Go SQLite adapter for core, WebAuthn, TOTP, OAuth and audit (@thegdsks)
  • : feat: Postgres and MySQL storage capabilities for tokens, devices, sessions (@thegdsks)
  • : feat: add bearer-only GET and DELETE /auth/tokens/current (@thegdsks)
  • : feat: add clientauth package for CLI device login (@thegdsks)
  • : feat: add stdlib Handler, CSRF origin check, auto Secure cookies (@thegdsks)
  • : feat: agent identity tokens and revocation watcher (@thegdsks)
  • : feat: bind sqlite Store to a caller transaction and add import helpers (@thegdsks)
  • : feat: configurable PathPrefix and dynamic OAuth ProviderResolver (@thegdsks)
  • : feat: end-user session management, step-up re-auth and session links (@thegdsks)
  • : feat: harden OAuth login, passkey policy and add auth event stream (@thegdsks)
  • : feat: honor AllowLegacyBcrypt and accept legacy API tokens (@thegdsks)
  • : feat: list and decide pending device requests by id (@thegdsks)
  • : feat: login throttle, MFA replay and per-user caps, bootstrap, email canonicalization, JSON errors (@thegdsks)
  • : feat: policy engine with RequirePolicy and token permission boundaries (@thegdsks)
  • : feat: scoped API tokens and RFC 8628 device grant (@thegdsks)
  • : feat: security doctor with admin route and CLI (@thegdsks)
  • : feat: split Storage into capability interfaces, add Config.CoreStorage (@thegdsks)

Bug fixes

  • : fix(cimd): also block 0.0.0.0/8 and IPv4-compatible IPv6 (@thegdsks)
  • : fix(postgres): clamp offset and limit before int32 conversion (@thegdsks)
  • : fix(security): add explicit slash-backslash guards to redirect validators (@thegdsks)
  • : fix(security): reject control characters in redirect validation (@thegdsks)
  • : fix(sqlite): persist agent token kind, name and delegator (@thegdsks)
  • : fix(storage/postgres): testPool applies all embedded migrations, not a stale 0001-0008 list (@thegdsks)
  • : fix(webauthn): persist and restore credential backup-eligible flag (@thegdsks)
  • : fix: apply TOTP replay and per-user lockout to step-up (@thegdsks)
  • : fix: close CodeQL SSRF and open-redirect alerts (@thegdsks)
  • : fix: resolve lint findings in doctor CLI and policy tests (@thegdsks)
  • : fix: restrict device pending list and by-id decide to root or a configured ability (@thegdsks)

Other changes

  • : Merge remote-tracking branch 'origin/feat/auth-platform-wave4' into integ/land (@thegdsks)
  • : Merge remote-tracking branch 'origin/feat/device-pending-list' into integ/auth-wave5 (@thegdsks)
  • : Merge remote-tracking branch 'origin/feat/pathprefix-provider-resolver' into integ/auth-wave5 (@thegdsks)
  • : Merge remote-tracking branch 'origin/feat/pg-mysql-capabilities' into integ/auth-wave4 (@thegdsks)
  • : Merge remote-tracking branch 'origin/feat/policy-engine' into integ/auth-wave4 (@thegdsks)
  • : Merge remote-tracking branch 'origin/feat/single-binary-example-docs' into integ/auth-wave4 (@thegdsks)
  • : Merge remote-tracking branch 'origin/main' into chore/release-2.6.0 (@thegdsks)
  • : chore(release): prepare v2.6.0 (@thegdsks)
  • : ci(docs): serialize gh-pages deploys (@thegdsks)
  • : ci: bump actions/setup-python from 6 to 7 (#135) (@dependabot[bot])
  • : ci: bump github/codeql-action from 4 to 4.37.3 (#141) (@dependabot[bot])
  • : ci: bump github/codeql-action from 4.37.3 to 4.37.6 (#145) (@dependabot[bot])
  • : ci: bump github/codeql-action from 4.37.6 to 4.37.7 (#151) (@dependabot[bot])
  • : ci: bump github/codeql-action from 4.37.7 to 4.38.0 (#163) (@dependabot[bot])
  • : ci: bump github/codeql-action from 4.38.0 to 4.38.1 (#169) (@dependabot[bot])
  • : ci: bump github/codeql-action from 4.38.1 to 4.38.2 (#174) (@dependabot[bot])
  • : ci: raise per-package test timeout to 300s (@thegdsks)
  • : ci: run root jobs without go.work and test storage/sqlite on Go 1.26 (@thegdsks)
  • : merge: sync with origin/main (@thegdsks)
  • : refactor: consolidate config, storage capability and testhooks root files (@thegdsks)
  • : refactor: extract token, device, agent and revocation code into internal packages (@thegdsks)
  • : refactor: group root facades and move storage stubs to internal (@thegdsks)
  • : refactor: move RBAC catalog into internal/rbac and merge root files by feature (@thegdsks)
  • : refactor: move black-box root tests to integration/ (@thegdsks)
  • : refactor: move doctor, import, bootstrap, ratelimit, httpsec, authevents and redaction out of root (@thegdsks)
  • : test(webauthn): regression + conformance for backup-flag fix (@thegdsks)

Verify this release

# Download the SBOM and its Sigstore signature from the release assets, then:
cosign verify-blob \
  --certificate-identity "https://github.com/glincker/theauth-go/.github/workflows/release.yml@refs/tags/v2.6.0" \
  --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
  --signature theauth-go-v2.6.0.tar.gz.sbom.json.sig \
  --certificate theauth-go-v2.6.0.tar.gz.sbom.json.cert \
  theauth-go-v2.6.0.tar.gz.sbom.json

Use this library: go get github.com/glincker/theauth-go/v2@v2.6.0

⌂ 换网址