Page MenuHomePhabricator

[identity] verify nonce in siwe message
ClosedPublic

Authored by varun on Oct 9 2023, 9:11 PM.
Tags
None
Referenced Files
F3348591: D9441.diff
Fri, Nov 22, 3:20 PM
Unknown Object (File)
Thu, Nov 21, 5:57 AM
Unknown Object (File)
Thu, Nov 21, 5:57 AM
Unknown Object (File)
Thu, Nov 21, 5:57 AM
Unknown Object (File)
Thu, Nov 21, 5:55 AM
Unknown Object (File)
Sat, Nov 9, 8:18 PM
Unknown Object (File)
Tue, Nov 5, 11:44 AM
Unknown Object (File)
Fri, Nov 1, 11:02 AM
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
No Lint Coverage
Unit
No Test Coverage