Page MenuHomePhabricator

[keyserver] Introduce `isValidSIWEMessage` and use it to validate `message` in `siweAuthResponder`
ClosedPublic

Authored by atul on Dec 24 2022, 7:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 25, 5:56 PM
Unknown Object (File)
Tue, Jun 25, 12:31 PM
Unknown Object (File)
Mon, Jun 24, 4:48 PM
Unknown Object (File)
Mon, Jun 24, 5:58 AM
Unknown Object (File)
Sat, Jun 22, 8:29 PM
Unknown Object (File)
Sat, Jun 22, 5:47 PM
Unknown Object (File)
Fri, Jun 21, 9:53 PM
Unknown Object (File)
Fri, Jun 21, 9:53 PM
Subscribers
None

Details

Summary

Check that the values in SIWEMessage are as expected. Throw a ServerError in siweAuthResponder if not.


Depends on D6030

Test Plan

Tried calling the endpoint with various inputs (correct and malformed). Set breakpoints throughout and ensured that things worked as expected.

Also moved siweStatement to lib so it could be shared outside of native.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Dec 24 2022, 8:13 PM
This revision is now accepted and ready to land.Dec 25 2022, 7:25 PM
This revision was landed with ongoing or failed builds.Dec 27 2022, 12:52 AM
This revision was automatically updated to reflect the committed changes.