Authenticate user via MetaMask
On https://pheix.org/admin page we have to add option to pass authentication via MetaMask browser extension.
Here is the prototype and demo how it works: https://gitlab.com/pheix-research/auth-with-metamask
Discussion and technical details: #182 (comment 1490543508)
I guess after the pKey
is obtained — it's enough to set it as cookie and call refresh
function.
Things to keep an eye on:
-
default tab, it will be
undefined
, so we have to pass or use default one; -
extend
method: it's unable to extend session cause of we have no public key on backend side to sign the transaction.
Progress:
- Auth & exit: #186 (comment 2144691737)
- Extend: #186 (comment 2147024045)
-
Items left:#186 (comment 2202421264) - Auth with MetaMask mobile: #186 (comment 2216437495)
Edited by Konstantin Narkhov