Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Determine logic for health provider code logic #4

Open
wichert opened this issue Apr 13, 2020 · 0 comments
Open

Determine logic for health provider code logic #4

wichert opened this issue Apr 13, 2020 · 0 comments

Comments

@wichert
Copy link
Member

wichert commented Apr 13, 2020

Possible approaches:

  • code is random generated, and we log timestamp + health provider uid on code generation. This allows generating many in advance, but only per health provider. May be hard to scale.
  • generate random single code on-demand, and log timestamp + health provider uid on generation
  • use something like TOTP with a time step of 12 hours, leading to codes being valid for 4 days. No way to tie health provider to code? Theoretically we could support offline code generation with this approach, but that requires building an app.
  • use TOTP + health provider uid + HMAC of previous two
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant