Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Sign-In with Ethereum

No security coverage Under active development 9 sites

This module allows users to log in to your Drupal site using their Ethereum wallet, following the Sign-In with Ethereum standard. Instead of passwords, users authenticate by signing a message with their Web3 wallet for a passwordless login experience.

SIWE Login lets people sign in to a Drupal site with an Ethereum wallet. They sign a short message in their wallet, following the Sign-In with Ethereum standard (EIP-4361), and no password is needed.

Features

  • Strict EIP-4361 parsing and signature checks, tested against the official SpruceID test vectors.
  • Single-use nonces, bound to the browser session and the wallet address, so a captured signature can't be replayed.
  • Domain, URI, chain ID and expiry checks. Only what the wallet signed is trusted.
  • Flood control on the sign-in routes, using core's flood service like the normal user login.
  • Optional email verification for new accounts, and optional username creation for wallets without an ENS name.
  • Safe account linking: a wallet whose email matches an existing account is linked only after that inbox is confirmed.
  • Optional ENS name lookup and validation.
  • Works on sites installed under a sub-path or with a language prefix.
  • A configurable sign-in block, and hook_siwe_login_response_alter() so other modules can change the response, for example the redirect.
  • Smart-contract wallets (EIP-1271) are refused with a clear message; only regular wallet accounts sign in.

What a visitor needs

A browser wallet: an extension such as MetaMask or Rabby, or a wallet app's built-in browser. An optional Web3Onboard client (off by default) is also included.

Requirements

  • Drupal 10 or 11.
  • PHP's GMP or BCMath extension. GMP is faster. On a BCMath-only host, add config.platform.ext-gmp to the site's root composer.json; the README explains how.
  • Optional: web3p/web3.php for ENS name lookup. Without it, sign-in works and the ENS features stay off.

The site doesn't need to install any JavaScript: the module loads a pinned copy of ethers (6.16.0) with a Subresource Integrity hash.

Installation

  1. composer require 'drupal/siwe_login:^1.0@beta'
  2. Enable the module. It creates the field_ethereum_address field on user accounts.
  3. Check the settings at Configuration › People › SIWE Login (/admin/config/people/siwe). The expected domain is detected on install.
  4. Place the SIWE Login block in a region.

Security

Upgrade to the latest beta: 1.0.0-beta5 to beta8 fixed nonce replay, client-supplied field overrides and other issues. This project has not opted into security advisory coverage yet. The module's threat model is public: THREAT-MODEL.md.

Related

Developed for LocalNodes. Bug reports and patches are welcome in the issue queue.

Ask your assistant about Sign-In with Ethereum

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
13
Tracked since
Nov 2025
Latest release
2 weeks ago
Releases (12 mo)
12 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta12 Pre-release 10–11 Nov 12, 2026
1.0.0-beta11 Pre-release 10–11 Nov 12, 2026
1.0.0-beta10 Pre-release 10–11 Nov 12, 2026
1.0.0-beta9 Pre-release 10–11 Nov 8, 2026
1.0.0-beta8 Pre-release 10–11 Nov 6, 2026
1.0.0-beta7 Pre-release 10–11 Nov 5, 2026
1.0.0-beta6 Pre-release 10–11 Nov 5, 2026
1.0.0-beta5 Pre-release 10–11 Nov 5, 2026
1.0.0-beta4 Pre-release 10–11 Dec 8, 2025
1.0.0-beta3 Pre-release 10–11 Dec 8, 2025