jnewbigin / lpass-sso Goto Github PK
View Code? Open in Web Editor NEWGUI for lastpass-cli sso login
GUI for lastpass-cli sso login
These are the current steps - yet to be validated
brew install node
cd
git clone https://github.com/jnewbigin/lpass-sso.git
cd lpass-sso
# Option 1: build with docker
auto/build
cd lpass-sso
# Options 2: build native
cd lpass-sso && yarn install && yarn build && yarn run electron-builder build -m zip
cd dist/mac/lpass-sso.app/Contents/
export LPASS_PINENTRY="$PWD/pinentry"
cd
git clone https://github.com/jnewbigin/lastpass-cli.git
cd lastpass-cli
git checkout sso
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
make
./lpass login --sso [email protected]
If successful, a GUI will open and prompt you to start the Okta login flow.
Once these steps are confirmed, the next step is to make a repeatable way to run lpass.
I use a wrapper script /usr/local/bin/lpass which sets the LPASS_PINENTRY environment and then execs the real lpass client.
Hello!
Do you think it is possible to use the same mechanism with type 2 accounts?
They forward the request to an ADFS, and make a SAML Authentication.
I am not able to find anything useful of using this to connect to LastPass via CLI / API etc.
Thanks and Best regards
Using the latest release under OSX Big Sur 11.6.1 and get through the window pops up, login and Okta MFA complete and the message Finishing...
fills the window. But nothing completes.
If I close the window after the lpass show -p example.com
call it errors as
$ lpass --version
LastPass CLI v1.3.3.17.g618e948.dirty
$ echo $LPASS_PINENTRY
/Applications/lpass-sso.app/Contents/pinentry
$ lpass show -p example.com
Error: There was an unspecified problem with pinentry.
After cloning the repo (at commit ff347d9), I built the electron app. When I did npm install
I got the following deprecation warnings:
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
I have some shell script use cases which run on headless machines. A browser window pop-up for authentication isn't viable. Would it be possible to use an Okta client library like https://github.com/wearefair/okta-auth ?
Mac just says the application 'lpass-sso' can't be opened. I have the newest M1 Macbook Pro. Probably needs to be compiled for M1 ARM chips too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.