HomePhabricator
Diffusion Comm e7885e5a97fa

[services][identity] wallet login

Description

[services][identity] wallet login

Summary:
Full implementation of wallet login. Steps:

  1. Parse SIWE message and signature from request
  2. Verify message using siwe-rs crate
  3. If verification is successful, generate a token, store it in the token table in DynamoDB, and then return it to the caller

Note that PAKE login is not covered here. It will be in a separate diff.

Test Plan: Successfully signed in with a metamask wallet

Reviewers: karol-bisztyga, palys-swm

Reviewed By: palys-swm

Subscribers: ashoat, Adrian, atul, yayabosh

Differential Revision: https://phab.comm.dev/D4285

Details

Provenance
varunAuthored on Jun 14 2022, 5:17 AM
Reviewer
tomek
Differential Revision
D4285: [services][identity] wallet login
Parents
rCOMM618541971733: [services][identity] update put_token_helper to return a String
Branches
Unknown
Tags
Unknown