# תוסף התחברות עם Ethereum

**URL:** https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897
**Category:** Plugin
**Tags:** web3
**Created:** [4 ביולי,‏ 2022,‏ 5:57pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897 "2022-07-04T17:57:27Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [22 בספטמבר,‏ 2022,‏ 9:59am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/21 "2022-09-22T09:59:14Z")

</div>

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](https://meta.discourse.org/t/142537?silent=true) ?

---

<div class="post-metadata">

### Author: ![Ashley87](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Ashley87](https://meta.discourse.org/u/Ashley87)
#### Post date: [22 בספטמבר,‏ 2022,‏ 10:11am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/22 "2022-09-22T10:11:37Z")

</div>

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

Selfhosted on Ubuntu 18 , and it is [standard install](https://meta.discourse.org/t/142537?silent=true) with ./setup command

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [22 בספטמבר,‏ 2022,‏ 10:13am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/23 "2022-09-22T10:13:34Z")

</div>

> [@RGJ](#):
>
> Did you add the `before_code` as described earlier in this topic?

So you did not do this

---

<div class="post-metadata">

### Author: ![Ashley87](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Ashley87](https://meta.discourse.org/u/Ashley87)
#### Post date: [22 בספטמבר,‏ 2022,‏ 1:07pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/24 "2022-09-22T13:07:52Z")

</div>

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

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [22 בספטמבר,‏ 2022,‏ 1:41pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/25 "2022-09-22T13:41:42Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)
#### Post date: [22 בספטמבר,‏ 2022,‏ 2:20pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/26 "2022-09-22T14:20:46Z")

</div>

@RGJ is referring to the guide in the github 🙂 [GitHub - spruceid/discourse-siwe-auth: Discourse plugin for SIWE authentication · GitHub](https://github.com/spruceid/discourse-siwe-auth)

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

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/c/f/8cf771e572a57253143b29ee9246265f9b32e735.png)

---

<div class="post-metadata">

### Author: ![Ashley87](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Ashley87](https://meta.discourse.org/u/Ashley87)
#### Post date: [22 בספטמבר,‏ 2022,‏ 6:46pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/27 "2022-09-22T18:46:42Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Ashley87](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@Ashley87](https://meta.discourse.org/u/Ashley87)
#### Post date: [22 בספטמבר,‏ 2022,‏ 6:47pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/28 "2022-09-22T18:47:44Z")

</div>

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

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

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [12 בפברואר,‏ 2023,‏ 8:56am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/29 "2023-02-12T08:56:21Z")

</div>

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.

```plaintext
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)

```

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [12 בפברואר,‏ 2023,‏ 2:37pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/30 "2023-02-12T14:37:38Z")

</div>

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

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [13 בפברואר,‏ 2023,‏ 3:47am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/31 "2023-02-13T03:47:24Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![discoursejl](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@discoursejl](https://meta.discourse.org/u/discoursejl)
#### Post date: [31 ביולי,‏ 2023,‏ 12:44pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/32 "2023-07-31T12:44:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Sepehr\_Mohamadi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sepehr_mohamadi/32/463119_2.png) [@Sepehr\_Mohamadi](https://meta.discourse.org/u/Sepehr_Mohamadi)
#### Post date: [9 בנובמבר,‏ 2024,‏ 1:55pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/33 "2024-11-09T13:55:47Z")

</div>

Can I add other Ethereum friendly networks as well?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [9 בנובמבר,‏ 2024,‏ 10:51pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/34 "2024-11-09T22:51:52Z")

</div>

Can you give an example of an “Ethereum friendly network” ?

---

<div class="post-metadata">

### Author: ![Sepehr\_Mohamadi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sepehr_mohamadi/32/463119_2.png) [@Sepehr\_Mohamadi](https://meta.discourse.org/u/Sepehr_Mohamadi)
#### Post date: [10 בנובמבר,‏ 2024,‏ 10:34am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/35 "2024-11-10T10:34:17Z")

</div>

I mean just like BSC

---

<div class="post-metadata">

### Author: ![Sepehr\_Mohamadi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sepehr_mohamadi/32/463119_2.png) [@Sepehr\_Mohamadi](https://meta.discourse.org/u/Sepehr_Mohamadi)
#### Post date: [12 בנובמבר,‏ 2024,‏ 12:39pm UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/36 "2024-11-12T12:39:46Z")

</div>

I mean “Binance Smart Chain”

---

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [11 בפברואר,‏ 2025,‏ 3:45am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/37 "2025-02-11T03:45:06Z")

</div>

# New Error

Yes, I added the before code hooks. The error starts here and does not happen when I comment out the siwe-auth plugin.

```plaintext
I, [2025-02-11T03:40:25.992538 #1] INFO -- : 
I, [2025-02-11T03:40:25.993236 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!

```

```plaintext
hooks:
  before_code:
    - exec:
        cmd:
          - gem install rubyzip
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-gamification
          - git clone https://github.com/discourse/discourse-chat-integration
          - git clone https://github.com/angusmcleod/discourse-events
          - git clone https://github.com/discourse/discourse-ai
          - git clone https://github.com/discourse/discourse-subscriptions
          - git clone https://github.com/discourse/discourse-translator
          - git clone https://github.com/discourse/discourse-signatures
          - git clone https://github.com/merefield/discourse-locations
          - git clone https://github.com/discourse/discourse-reactions
          - git clone https://github.com/melhosseiny/discourse-nft-avatar
          - git clone https://github.com/discourse/discourse-follow
          - git clone https://github.com/spruceid/discourse-siwe-auth

```

See the error below

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 778 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

```

---

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [11 בפברואר,‏ 2025,‏ 3:45am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/38 "2025-02-11T03:45:51Z")

</div>

@RGJ please see above, hopefully we can quickly resolve ^

---

<div class="post-metadata">

### Author: ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)
#### Post date: [11 בפברואר,‏ 2025,‏ 3:47am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/39 "2025-02-11T03:47:10Z")

</div>

{“translation”: “ **יומן מלא:** \n``\nredacted@server:/var/discourse$ sudo ./launcher rebuild app\nx86\_64 ארכיטקטורה לזיהוי”}

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [11 בפברואר,‏ 2025,‏ 6:21am UTC](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897/40 "2025-02-11T06:21:40Z")

</div>

The solution is (was) already in our fork at [https://github.com/communiteq/discourse-siwe-auth](https://github.com/communiteq/discourse-siwe-auth), we have not made a PR to upstream yet because the fix commits are a bit messy, but it works fine.

[Previous page](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897.md?page=1)

[Next page](https://meta.discourse.org/t/sign-in-with-ethereum-plugin/231897.md?page=3)
