メインコンテンツにスキップ

MetaMask Web3

MetaMask is a wallet and gateway to dApps. Casdoor can use it as a Web3 identity provider for “Sign in with MetaMask”.

1. Create the provider in Casdoor​

Providers → Add. Set Category to Web3, Type to MetaMask. No API keys required.

MetaMask Web3プロバイダーを作成する

2. Add to your application​

Add the MetaMask provider to the application’s provider list.

アプリケーションにMetaMask Web3プロバイダーを追加する

3. Sign in with MetaMask​

Users can sign in with MetaMask. デモ:

ヒント
  • Authorize only one Ethereum address per user; Casdoor binds one address per account.
  • To use a different address, disconnect the current one in Casdoor first, then sign in again with the new address.

MetaMaskの接続を切断する