Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceHandler ¶
type ServiceHandler interface {
// 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) (bool, 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) (bool, error)
}
func NewServiceHandler ¶
func NewServiceHandler(origin string, apiEndpoint chain.APIEndpoint) (ServiceHandler, error)
Click to show internal directories.
Click to hide internal directories.