signinwithssb

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler implements the muxrpc methods for the "Sign-in with SSB" calls. SendSolution and InvalidateAllSolutions.

func New

func New(
	log kitlog.Logger,
	self refs.FeedRef,
	roomDomain string,
	membersdb roomdb.MembersService,
	sessiondb roomdb.AuthWithSSBService,
	bridge *signinwithssb.SignalBridge,
) Handler

New returns the muxrpc handler for Sign-in with SSB

func (Handler) InvalidateAllSolutions

func (h Handler) InvalidateAllSolutions(ctx context.Context, req *muxrpc.Request) (interface{}, error)

InvalidateAllSolutions implements the muxrpc call httpAuth.invalidateAllSolutions

func (Handler) SendSolution

func (h Handler) SendSolution(ctx context.Context, req *muxrpc.Request) (interface{}, error)

SendSolution implements the receiving end of httpAuth.sendSolution. It recevies three parameters [sc, cc, sol], does the validation and if it passes creates a token and signals the created token to the SSE HTTP handler using the signal bridge.

Jump to

Keyboard shortcuts

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