Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTimeout = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type AuthClient 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) (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
func NewAuthStream ¶ added in v0.1.7
func NewAuthStream(s grpc.ClientStream) StreamClient
Click to show internal directories.
Click to hide internal directories.