Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Internal errors ErrInvalidWalletAddress = errors.New("invalid wallet address") ErrUnexpectedStatusCode = errors.New("received unexpected status code") )
Functions ¶
This section is empty.
Types ¶
type UnstoppableDomains ¶
type UnstoppableDomains struct { *req.Client // contains filtered or unexported fields }
func NewIdentityProvider ¶
func NewIdentityProvider(log *logan.Entry, config *config.UnstoppableDomains) *UnstoppableDomains
func (*UnstoppableDomains) Verify ¶
func (u *UnstoppableDomains) Verify( user *data.User, verifyDataRaw []byte, ) (*issuer.IdentityProvidersCredentialSubject, []byte, error)
type UserInfo ¶
type UserInfo struct { EIP4361Message string `json:"eip4361_message"` EIP4361Signature string `json:"eip4361_signature"` WalletAddress string `json:"wallet_address"` Domain string `json:"sub"` }
UserInfo data that is returned by Unstoppable Domains by /userinfo endpoint. It contains more information, but we only need this fields
type VerificationData ¶
type VerificationData struct {
AccessToken string `json:"access_token"`
}
VerificationData data that is required by Unstoppable Domains to verify a user
Click to show internal directories.
Click to hide internal directories.