MetaMask
note
This is an example of how to configure MetaMask as a Web3 provider.
MetaMask is a browser extension and app that functions as both a cryptocurrency wallet and a gateway to blockchain apps. Casdoor allows you to use MetaMask as an identity provider and enables Web3 login with MetaMask.
Step 1: Create a MetaMask Web3 provider
To start, you need to create a MetaMask Web3 provider in Casdoor.
Name | Description |
---|---|
Category | Choose Web3 |
Type | Choose MetaMask |
Step 2: Add the provider to your application
Next, add the MetaMask Web3 provider to your application.
Step 3: Login with MetaMask
You can now log in with MetaMask. Here is a demo video.
tip
When logging in with MetaMask, please authorize only one Ethereum address. Casdoor will only bind one Ethereum address per user.
If you want to switch to another Ethereum address for login, please disconnect the connection between the current Ethereum address and Casdoor first.