Documentation ¶
Index ¶
- type AuthenticationService
- func (v *AuthenticationService) LoginFinish(ctx context.Context, req *v1.LoginFinishRequest) (*v1.LoginFinishResponse, error)
- func (v *AuthenticationService) LoginStart(ctx context.Context, req *v1.LoginStartRequest) (*v1.LoginStartResponse, error)
- func (v *AuthenticationService) RegisterFinish(ctx context.Context, req *v1.RegisterFinishRequest) (*v1.RegisterFinishResponse, error)
- func (v *AuthenticationService) RegisterStart(ctx context.Context, req *v1.RegisterStartRequest) (*v1.RegisterStartResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationService ¶
type AuthenticationService struct { Node common.IPFSNode Dispatcher *dispatcher.Dispatcher }
`AuthenticationService` is a type that implements the `v1.VaultServer` interface, and has a field called `highway` of type `*HighwayNode`. @property - `v1.VaultServer`: This is the interface that the Vault service implements. @property highway - This is the HighwayNode that the AuthenticationService is running on.
func (*AuthenticationService) LoginFinish ¶
func (v *AuthenticationService) LoginFinish(ctx context.Context, req *v1.LoginFinishRequest) (*v1.LoginFinishResponse, error)
LoginFinish returns a challenge to be signed by the user.
func (*AuthenticationService) LoginStart ¶
func (v *AuthenticationService) LoginStart(ctx context.Context, req *v1.LoginStartRequest) (*v1.LoginStartResponse, error)
LoginStart returns a challenge to be signed by the user.
func (*AuthenticationService) RegisterFinish ¶
func (v *AuthenticationService) RegisterFinish(ctx context.Context, req *v1.RegisterFinishRequest) (*v1.RegisterFinishResponse, error)
CreateAccount derives a new key from the private key and returns the public key.
func (*AuthenticationService) RegisterStart ¶
func (v *AuthenticationService) RegisterStart(ctx context.Context, req *v1.RegisterStartRequest) (*v1.RegisterStartResponse, error)
Register registers a new keypair and returns the public key.
Click to show internal directories.
Click to hide internal directories.