handler

package
v0.4.3-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceHandler

type ServiceHandler interface {
	// GetRPID returns the RPID for the service.
	GetRPID() string

	// GetRPName returns the RPName for the service.
	GetRPName() string

	// This method is used to get the challenge response from the DID controller.
	BeginRegistration(req *v1.RegisterStartRequest) ([]byte, error)

	// This is the method that will be called when the user clicks on the "Register" button.
	FinishRegistration(req *v1.RegisterFinishRequest) (common.SNRPubKey, error)

	// This method is used to get the options for the assertion.
	BeginLogin(req *v1.LoginStartRequest) ([]byte, error)

	// This is the method that will be called when the user clicks the "Login" button on the login page.
	FinishLogin(req *v1.LoginFinishRequest) (common.SNRPubKey, error)
}

func NewServiceHandler

func NewServiceHandler(origin string, apiEndpoint chain.APIEndpoint) (ServiceHandler, error)

Jump to

Keyboard shortcuts

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