Skip to content

Bind SNAuth external login to browser state and S256 proof - #14

Merged
VargaJoe merged 1 commit into
developfrom
codex/auth-lifecycle-fixes
Nov 5, 2026
Merged

VargaJoe merged 1 commit into
developfrom
codex/auth-lifecycle-fixes

Conversation

@VargaJoe

Copy link
Copy Markdown
Contributor

External-login callbacks could be redeemed without proof of the browser transaction that initiated sign-in. Bind authorization/MFA codes to state, S256 challenge and callback; validate proof before atomic consumption and preserve the binding through remembered login, MFA, registration and password recovery. Restrict callbacks to the allowed application origin and correct temporary-token expiry from days to configured minutes.

Existing clients that omit all binding fields remain compatible; partial binding and proof-bearing redemption of legacy codes are rejected. Deploy this server before the companion SenseNet/sn-client codex/auth-lifecycle-fixes change. The new client intentionally reports an error against an old unbound callback. Parallel-session and SingleSessionPerUser behavior remain covered.

Validation: full solution 86/86 tests passed (76 integration, 10 unit); release publish succeeded. Independent source review found no concrete blocker. See docs/external-login.md for the protocol/rollout and the companion AdminUI authentication acceptance matrix for the planned user test round. No deployment performed.

@VargaJoe
VargaJoe marked this pull request as ready for review November 5, 2026 15:48
@VargaJoe
VargaJoe merged commit f4bc5d8 into develop Nov 5, 2026
2 checks passed
@VargaJoe
VargaJoe deleted the codex/auth-lifecycle-fixes branch November 5, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant