Giter VIP home page Giter VIP logo

fastlane-plugin-lastpass's Introduction

LastPass plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-lastpass, add it to your project by running:

fastlane add_plugin lastpass

About the LastPass plugin

Easily sync your Apple ID credentials stored in LastPass with your keychain. This action may require user input if two factor authentication is enabled for the account you're logging in with.

Step 1

Find out the id for the crendentials you wish to sync. You can do so by executing the lastpass action with the list option enabled.

fastlane run lastpass username:"[email protected]" password:"mysuperpassword" list:true

Step 2

Create a file named lastpass.yaml containing the ids of your vault items.

vault-items:
- "5576281234514771203"
- "3942334544195479218"

Step 3

Use the fastlane lastpass action standalone or as part of a lane. If you are using it on CI system, you probably don't want to have an account with two factor authentication enabled since it requires manual text entry during execution.

Example

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.

desc "Sync LastPass credentials with the local keychain"
lane :syncCredentials do
    lastpass(username: "[email protected]", password: "mysuperpassword", overwrite: true)
end

Available parameters

Parameter Description Optional (default value)
username Your LastPass username Required
password Your LastPass password Required
overwirte In case the passwords don't match, should the existing passwords be replaced Optional (false)
list List available credentials in the account, do not modify the keychain Optional (false)

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Credits

This plugin use the LastPass ruby gem by Dmitry Yakimenko

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.

fastlane-plugin-lastpass's People

Contributors

antoinelamy avatar

Stargazers

 avatar  avatar

fastlane-plugin-lastpass's Issues

Bad Decrypt on account

Hi,

I seem to have an issue where it says bad decrypt when I run the list command of;
fastlane run lastpass username:"username" password:"password" list:true

/usr/local/lib/ruby/gems/2.4.0/gems/lastpass-1.5.0/lib/lastpass/parser.rb:282:in `final': [!] bad decrypt (OpenSSL::Cipher::CipherError) from /usr/local/lib/ruby/gems/2.4.0/gems/lastpass-1.5.0/lib/lastpass/parser.rb:282:in `decode_aes256'

also i noticed that something related to the parser is deprecated as this happens as soon as i trigger setup
/usr/local/lib/ruby/gems/2.4.0/gems/lastpass-1.5.0/lib/lastpass/parser.rb:278: warning: constant OpenSSL::Cipher::Cipher is deprecated

I created a new lastpass account and this seems to work fine so I wonder if its related to whether its a paid account or the account type?

Let me know if there's anything I can provide.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.