Sign-In with Ethereum plugin

Please tell us about all the things you did to add this plugin.
Did you add the before_code as described earlier in this topic?
Is this a standard install ?

1 Like

in app.yml Added like - git clone https//GitHub—-.git

Selfhosted on Ubuntu 18 , and it is standard install with ./setup command

So you did not do this

1 Like

@RGJ can you please tell me how to add this before_code , and please share me post with the before_code

No, I’m sorry, you can use ctrl-f to search the topic and it will lead you to the answer.

3 Likes

@RGJ is referring to the guide in the github :slight_smile: GitHub - spruceid/discourse-siwe-auth: Discourse plugin for SIWE authentication

In the app.yml file you need to add the sections below the hooks section

2 Likes

thankyou @RGJ and @Tris20 , will try this and update you

it really did thanks dont know why i was not able to see it earlier :slightly_smiling_face:

update : Installation done and plugin is working fine , now just testing with ETH wallet to login.

4 Likes

I believe this is broken, no popup (ask for sign) is happening when you press the “Sign with Ethereum” button on /discourse-siwe/auth page.

Below are the console logs that show up when you click the button.

SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
    at Function.parse [as parseJSON] (<anonymous>)
    at n (ajax-error.js:29:1)
    at e.popupAjaxError (ajax-error.js:71:1)
    at y (rsvp.js:435:1)
    at v (rsvp.js:421:1)
    at f (rsvp.js:370:1)
    at m.invoke (queue.ts:203:14)
    at m.flush (queue.ts:98:13)
    at f.flush (deferred-action-queues.ts:75:19)
    at $._end (index.ts:616:32)
    at _boundAutorunEnd (index.ts:257:12)
TypeError: Cannot destructure property 'message' of '(intermediate value)' as it is undefined.
    at e.signMessage (web3modal.js:66:1)
    at async e.runSigningProcess (web3modal.js:82:1)
    at async e.initAuth (siwe-auth-index.js:38:1)

It’s working for me on both tests-passed as stable, using an Infura ID.
How did you configure the plugin?

Hmm I tried both infura key or public RPC’s, aswel as manually entered the mainnet RPC from infura. I’m not sure if that is the problem.

Is it possible to edit/style the sign in with eth popup?