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