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