hgzimmerman / BucketQuestions

A webapp written entirely in Rust for a dumb party game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Come up with a scheme for managing CSRF tokens for Google OAuth

hgzimmerman opened this issue · comments

Requirements:

  • Store CSRF token from /auth/link, so it can be used in the /auth/redirect.
  • Store multiple, for concurrent logins, have a lookup mechanism to see if CSRF from /auth/redirect is in the set produced by /auth/link.
  • Ideally non-blocking, but can be slow.
  • Bounded max-size, of cache or max-time for items in cache.
  • Should be resilient to dos attacks within reason.

Candidates: