auth_client

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

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

func NewAuthClient

func NewAuthClient(address string) (AuthClient, error)

type DidAuthenticationChallenge added in v0.1.7

type DidAuthenticationChallenge struct {
	Nonce string
}

type DidRegistrationChallenge added in v0.1.7

type DidRegistrationChallenge struct {
	Nonce string
}

type StreamClient added in v0.1.7

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

func NewAuthStream added in v0.1.7

func NewAuthStream(s grpc.ClientStream) StreamClient

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