HomePhabricator
Diffusion Comm 32e3d236ca9a

[keyserver] Return generated `nonce` in `siweNonceResponder`

Tags
None
Referenced Files
F287339: bf55cd.png
Dec 19 2022, 10:40 AM
File Not Attached
Subscribers
None

Description

[keyserver] Return generated nonce in siweNonceResponder

Summary:

  • return nonce generated from siwe:generateNonce
  • input validation with tcomb
  • introduce SIWENonceRequest and SIWENonceResponse types (to appease flow)

Again nothing very interesting, just necessary scaffolding.


Depends on D5884

Test Plan:
Send a malformed request and make sure the keyserver throws.
Send a correctly formed request and make sure the keyserver validates input:

bf55cd.png (1×1 px, 233 KB)

Reviewers: ashoat, tomek

Reviewed By: ashoat

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

Details

Provenance
atulAuthored on Dec 19 2022, 9:57 AM
Reviewer
ashoat
Differential Revision
D5885: [keyserver] Return generated `nonce` in `siweNonceResponder`
Parents
rCOMM4ddb4b60da6d: [docs] Removing deprecated gRPC codegen from the documentation
Branches
Unknown
Tags
Unknown