user_client

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 5 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type DidAuthenticationChallenge

type DidAuthenticationChallenge struct {
	Nonce string
}

type DidRegistrationChallenge

type DidRegistrationChallenge struct {
	Nonce string
}

type StreamClient

type StreamClient interface {
	WaitForCompletion() error
	Close() error
}

func NewAuthStream

func NewAuthStream(s grpc.ClientStream) StreamClient

type UserClient

type UserClient interface {
	Close()
	AuthenticateWithPassword(email string, password string) (*model.AuthToken, error)
	AuthnWithDidRegister(did string, nonce string, enc []byte) error
	AuthenticateWithDid(did string, nonce string, signature []byte) (*model.AuthToken, error)
	CreateDidAuthenticationChallenge(did string) (*DidAuthenticationChallenge, error)
	CreateDidRegistrationChallenge(auth_token string) (*DidRegistrationChallenge, StreamClient, error)
}

func NewAuthClient

func NewAuthClient(address string) (UserClient, error)

Directories

Path Synopsis
Package grpc_mock is a generated GoMock package.
Package grpc_mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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