Page MenuHomePhabricator

[identity] verify nonce in siwe message
ClosedPublic

Authored by varun on Oct 9 2023, 9:11 PM.
Tags
None
Referenced Files
F2760640: D9441.id31850.diff
Thu, Sep 19, 6:54 AM
F2752766: D9441.diff
Wed, Sep 18, 4:15 PM
Unknown Object (File)
Wed, Sep 18, 10:51 AM
Unknown Object (File)
Tue, Sep 17, 2:09 PM
Unknown Object (File)
Tue, Sep 17, 1:46 PM
Unknown Object (File)
Tue, Sep 17, 12:52 PM
Unknown Object (File)
Tue, Sep 17, 5:17 AM
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Subscribers

Details

Summary

get the nonce from the SIWE message provided by the user and check if it exists in our nonces table. if it doesn't, return an error. if it does, remove it and proceed.

Depends on D9440

Test Plan

tried to use the same nonce for consecutive sign-in requests and only the first request succeeded.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable