Persist OAuth sessions across server restarts #72
Labels
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
puregarlic/microclimate#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current
MemoryAuthStoreimplementation loses all OAuth session state when the server process exits, forcing every user to re-authenticate on restart.Replace it with a SQLite-backed
ClientAuthStoreimplementation that persists bothClientSessionData(completed sessions) andAuthRequestData(in-flight login state) to the existing database.This also ensures the in-flight
pending_loginsmap (forAwaitLogin) is the only truly ephemeral state—acceptable to lose on restart since any pending login would need to restart anyway.Related to #9.