web-monetization-extension
web-monetization-extension copied to clipboard
[FEATURE REQUEST] Replace copy/paste of public key with URL parameter to wallet provider
Describe the feature you would like to request
I would like the extension onboard to have fewer steps the user must complete.
In the alpha 1 release, the user must copy a public key from the extension and paste it into the wallet provider's website.
https://github.com/interledger/web-monetization-extension/assets/106775223/1a2527d3-cf01-4e6a-b94b-74296af99fbe
Describe the solution you would like
- User enters wallet address and taps connect.
- Extension opens the wallet provider's website with the extension's public key as a URL parameter.
- Wallet provider authenticates the user and saves the extension's public key when the user confirms they want to authorize the amount to use from the wallet.
Additional context
I'm not sure if additional information can be passed along with the grant approval. If not, then the desired solution would be to first confirm the user wants to use this browser for Web Monetization (as a way to approve saving the public key) and then the grant approval for the budget is a second approval.
While Interledger does not control the wallet provider website, but it could define a URI scheme as part of the wallet provider specification. Something like https:// (walletProvider.example/usersWalletAddress) /keys/add?key= (public key contents here)
. Because the key is a public key, it's fine for it to be passed as a URL parameter, where it might be included in server access logs.