-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
320ptsback-enddbhacktoberfestonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source weekrust
Description
This could be done at the same time as #108 or seprately. If you chose to just do the backend, let's not merge this in order to not break the code, and have the front end implementer branch out of this
Specs:
- Add new migration to add
login_nonceNUMBER column toprofilestable - Create new
get_login_nonce_by_wallet_addressmethod inprofile_repository(domain) to get a user's login nonce with their wallet address - Add
get_login_nonce_by_wallet_addressmethod implementation inpostgres_profile_repository(infrastructure) to get a user's login nonce with their wallet address - Add a
get_login_noncequery in the application layer - Add a
/nonce/:wallet_addresspublic GET endpoint and handler that uses theget_user_login_nonce - Update the
ethereum_address_verification_serviceimplementation (verify_signaturemethod) to use the current nonce for the given user instead of the constant nonce - and increment the nonce (see discussion)
In next ticket #108
- Update the frontend to call the
/nonce/:wallet_addressGET endpoint to get the nonce and sign it instead of the constant nonce
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
320ptsback-enddbhacktoberfestonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source weekrust