thirdparty

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	thirdpartypb.UnimplementedThirdPartyServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	log *zap.Logger,
	authz auth.Authorizer,
	accounts account.Store,
	profiles profile.Store,
	coinbaseApiKey string,
	coinbasePrivateKey ed25519.PrivateKey,
) *Server

func (*Server) GetJwt

GetJwt signs a token for a request the app makes to a third party itself, with the server's key for that provider.

For Coinbase, the only provider, the caller must be registered (DENIED), name the server's key (INVALID_API_KEY), ask for one of the requests the apps make (DENIED; see isAllowedCoinbaseRequest, judged before anything of the caller's profile is read) and have a verified phone number (PHONE_VERIFICATION_REQUIRED), and a verified email address too while account.RequireCoinbaseEmailVerification is set (EMAIL_VERIFICATION_REQUIRED; an address linked unverified is not enough).

Jump to

Keyboard shortcuts

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