wallet

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

Wallet connector

Wallet connector is a OAuth plug-in designed to support Wallet OAuth login.

How to use

Build
./answer build --with github.com/apache/incubator-answer-plugins/connector-wallet
Use Case
  • Step 1: Install the wallet plug-in on your chrome/firefox browser. ex:MetaMask,BitgetWallet.

./imgs/install.png

  • Step 2: Generate your web3 wallet.

./imgs/create.png

./imgs/wallet.png

  • Step3: Build your answer with golang and register the plugin.

./imgs/activate.png

  • Step4: Log in through your wallet and bind to your email. ./imgs/click1.png

./imgs/click2.png

./imgs/bind.png

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Info embed.FS

Functions

This section is empty.

Types

type Connector

type Connector struct {
}

func (*Connector) ConfigFields

func (g *Connector) ConfigFields() []plugin.ConfigField

func (*Connector) ConfigReceiver

func (g *Connector) ConfigReceiver(config []byte) error

func (*Connector) ConnectorLogoSVG

func (g *Connector) ConnectorLogoSVG() string

func (*Connector) ConnectorName

func (g *Connector) ConnectorName() plugin.Translator

func (*Connector) ConnectorReceiver

func (g *Connector) ConnectorReceiver(ctx *plugin.GinContext, receiverURL string) (userInfo plugin.ExternalLoginUserInfo, err error)

func (*Connector) ConnectorSender

func (g *Connector) ConnectorSender(ctx *plugin.GinContext, receiverURL string) (redirectURL string)

func (*Connector) ConnectorSlugName

func (g *Connector) ConnectorSlugName() string

func (*Connector) Info

func (g *Connector) Info() plugin.Info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL