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 ¶
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.
Click to show internal directories.
Click to hide internal directories.