Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed user creation with client side QR #328

Open
SmithPeder opened this issue Jan 28, 2020 · 1 comment
Open

Proposed user creation with client side QR #328

SmithPeder opened this issue Jan 28, 2020 · 1 comment

Comments

@SmithPeder
Copy link
Member

SmithPeder commented Jan 28, 2020

New flow for user creation

  1. The user is prompted with the Create user button that generates a username and a password.
  2. The user is prompted to take a screenshot of the random username and password.
  3. The user is shown a QR code created by a username:password:code string. The user is now ready to approach the mod-computer.
  4. The moderator scans a white card, giving the mod-computer the cardKey, which prompts the camera feature on the computer.
  5. The user shows his/hers QR code to the computer camera
  6. The mod-computer sends the username, password, code and cardKey to the VOTE-API
  7. The VOTE-API creates the user, and sends a websocket msg to all users with the code
  8. The user sees his/her code on the websocket msg, and his/hers username and password are autofilled and logged in.

B05F0A6A-9BF1-4DC2-95A8-7D8BEA62203B

@odinuge
Copy link
Member

odinuge commented Jan 30, 2020

Proposal v2.1

73291236-10f2c400-4200-11ea-8959-485eabca970b

Make 1 RSA keypair on API-startup (or via env, but we only run one instance because of sockets), and all qr-codes are encrypted with that one. The public key can be embeded into the HTML-response, or fetched via. a simple request.

Not 100% necessary, but the QR code may be visible for several minutes, and with this it wouldn't matter.

Any thoughts @orhanhenrik?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants