This project is not covered by Drupal’s security advisory policy.
This module allows connecting and authenticating in Drupal 10, with a web3 wallet and Metamask.
Features
User management can be disabled in settings if you only want to connect wallet in front-end, without altering the user creation and login core system.
The following default chains dictionnary is set :
- Ethereum Mainnet
- Goerli Testnet
- BNB Smart Chain Mainnet
- BNB Smart Chain Testnet
- Polygon Mainnet
- Localhost Network
- Polygon zkEVM Testnet
- Base Mainnet
- Base Goerli
- Sepolia
You can specify the required chain id and define your own chains dictionnary.
A custom block includes buttons to connect, switch network, add network, and provides info about web3 connection.
Post-Installation
Place the Web3 Auth block in a theme region.
You can configure the module at /admin/config/web3_auth/settings
Additional Requirements
This module requires no modules outside of Drupal core.
It requires some PHP libraires though.
Be sure php-gmp and php-bcmath are installed in your server.
Recommended modules/libraries
The following composer libraires are required : kornrunner/keccak and simplito/elliptic-php.
Similar projects
This is in fact a complete rewrite of the web3 module, as it needed major changes to work with Drupal 10:
- no jQuery (as no more present in D10)
- no 3rd paty web3 libs which requires an external account/API key
- other improvements on wallet chnages and more...
Supporting this Module
If you feel like helping improving this project, or if you need custom features, feel free to contact me and buy me a beer sending funds to this wallet:
0xA607e4678756e4B23FB2e09c8F70996C3805207F
Community Documentation
The readme file should be fine, if you need help setting up the module, please open an issue.
Project information
- Project categories: Access control
- Ecosystem: Web3
- Created by roman_l on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

