Require matching ID token and profile subjects for OIDC sign-in #56

Merged
eleith merged 1 commits from fix/oidc-subject-binding into main 2026-11-25 05:19:09 +00:00

Summary

Require the profile subject to match the verified ID token subject in GoTo’s existing Better Auth account callback. Use the token subject as the account key. Better Auth still handles token verification and discovery; no config or database changes.

GoTo declares jose directly at the version already present in the lockfile through Better Auth, rather than importing library internals or adding a JWT parser.

Verification

Focused provider tests cover matching, mismatched, and missing subjects and the existing missing-token rejection. Web type check and production build, scoped formatting and lint, and frozen lockfile validation passed.

## Summary Require the profile subject to match the verified ID token subject in GoTo’s existing Better Auth account callback. Use the token subject as the account key. Better Auth still handles token verification and discovery; no config or database changes. GoTo declares `jose` directly at the version already present in the lockfile through Better Auth, rather than importing library internals or adding a JWT parser. ## Verification Focused provider tests cover matching, mismatched, and missing subjects and the existing missing-token rejection. Web type check and production build, scoped formatting and lint, and frozen lockfile validation passed.
eleith added 1 commit 2026-11-25 05:14:58 +00:00
fix(auth): upgrade Better Auth for OIDC subject verification
ci/woodpecker/pr/cli Pipeline was successful
ci/woodpecker/pr/config Pipeline was successful
ci/woodpecker/pr/db Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/cli Pipeline was successful
ci/woodpecker/push/config Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
47dc4096a8
eleith force-pushed fix/oidc-subject-binding from c810ead04a to 47dc4096a8 2026-11-25 05:14:58 +00:00 Compare
eleith merged commit 47dc4096a8 into main 2026-11-25 05:19:09 +00:00
eleith deleted branch fix/oidc-subject-binding 2026-11-25 05:19:09 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/goto#56