Popularity
2.5
Declining
Activity
0.0
Stable
34
5
5

Programming language: Go
License: MIT License
Tags: Third-party APIs    
Latest version: v0.1.1

lastpass-go alternatives and similar packages

Based on the "Third-party APIs" category.
Alternatively, view lastpass-go alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of lastpass-go or a related project?

Add another 'Third-party APIs' Package

README

Documentation Go Report Card Coverage Status Build Status

Go client for LastPass

Features

  • login via
    • user name and master password
    • two-factor authentication with out-of-band mechanism such as push notification to LastPass Authenticator or Duo Security
    • two-factor authentication with one-time password from LastPass Authenticator, Google Authenticator, Microsoft Authenticator, YubiKey, Duo Security, Sesame, etc.
  • create account
  • read accounts (including accounts from shared folders)
  • update account
  • delete account
  • logout

Documentation

GoDoc

Installation

Install:

$ go get github.com/ansd/lastpass-go

Import:

import "github.com/ansd/lastpass-go"

Usage

Below, error handling is excluded for brevity. See examples directory for more examples.

// authenticate with LastPass servers
client, _ := lastpass.NewClient(context.Background(), "user name", "master password")

// two-factor authentication with one-time password as second factor:
// client, _ := lastpass.NewClient(context.Background(), "user name", "master password", lastpass.WithOneTimePassword("123456"))

account := &lastpass.Account{
    Name:     "my site",
    Username: "my user",
    Password: "my pwd",
    URL:      "https://myURL",
    Group:    "my group",
    Notes:    "my notes",
}

// Add() account
client.Add(context.Background(), account)

// read all Accounts()
accounts, _ := client.Accounts(context.Background())

// Update() account
account.Password = "updated password"
client.Update(context.Background(), account)

// Delete() account
client.Delete(context.Background(), account.ID)

// Logout()
client.Logout(context.Background())

Notes

This repository is a port of detunized/lastpass-ruby and a clone of mattn/lastpass-go.

This project is licensed under the MIT License - see the LICENSE file for details.

This repository's ecb (Electronic Codebook) package contains code which is "Copyright 2013 The Go Authors. All rights reserved."


*Note that all licence references and agreements mentioned in the lastpass-go README section above are relevant to that project's source code only.