Skip to content

spring: Add Flask password-sync utility (1/4 split of #168) - #169

Open
RudraBJoshi wants to merge 1 commit into
Open-Coding-Society:masterfrom
dhyantsoni:split/spring/s1-flask-password-sync
Open

spring: Add Flask password-sync utility (1/4 split of #168)#169
RudraBJoshi wants to merge 1 commit into
Open-Coding-Society:masterfrom
dhyantsoni:split/spring/s1-flask-password-sync

Conversation

@RudraBJoshi

Copy link
Copy Markdown

Splitting #168 into smaller, independently-reviewable PRs across spring/flask/pages. This one covers password database syncing.

Adds FlaskPasswordSync, a standalone utility that calls Flask's POST /api/internal/sync-password with a shared secret, so a Spring-side reset can keep Flask's password in sync. Not wired up to any caller yet — that happens in the next PR in this stack, which depends on this class existing.

Stack: this PR → "Add OAuth + student ID verified password reset flow" and "Refuse to sync a plaintext password to Flask..." both branch from here.

Original PR: #168

FlaskPasswordSync calls Flask's internal sync endpoint
(POST /api/internal/sync-password) with a shared secret
(INTERNAL_SYNC_KEY), so a password reset completed on Spring also lands
on the Flask account for the same uid. Not wired up to any caller yet --
that's the OAuth-verified reset flow, next PR in the stack. Best-effort:
a sync failure is logged, not fatal to whatever already-successful
operation triggered it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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