login

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	PrivateKeyEncrypted string `xml:"privatekeyenc,attr"`
	Token               string `xml:"token,attr"`
	EncryptionKey       []byte
}

Response contains fields which got parsed from the response of the /login.php endpoint.

func NewClient

func NewClient() (*http.Client, *Response)

NewClient reads the executable's username and password arguments and authenticates with the LastPass servers. It returns an http.Client with the cookie set returned by LastPass and a Response containing parsed fields from the /login.php response.

Jump to

Keyboard shortcuts

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