Commit Graph

146 Commits

Author SHA1 Message Date
Moririn e7c462b4a6 spelling 2023-11-09 14:11:47 +00:00
Moririn 95a9b36a50 formatting/spelling 2023-11-09 14:11:47 +00:00
Moririn 496eff654f Update README.md 2023-11-08 17:33:32 +00:00
Moririn 019248a073 https://github.com/tadfisher/pass-otp/pull/172 2023-11-08 17:19:23 +00:00
Paul Wise aca53208b3
Send secrets to oathtool via stdin instead of command-line arguments
Check if the oathtool version supports this first and prefer
the safe oathtool version to the always unsafe otptool.

Fixes: https://github.com/tadfisher/pass-otp/issues/167
2023-05-12 14:50:19 +08:00
Paul Wise 79aea92eb8
Use bash arrays to separate arguments to oathtool and otptool
Also use long version of oathtool -b/--base32 option.
2023-05-12 14:50:19 +08:00
Paul Wise 1c71a342e3
Use `command -v` instead of `which` for finding programs
which is non-standard and prints warnings when programs are not installed,
but pass-otp already handles programs not being installed properly.

Still use which in the tests because it usefully prints the $PATH too.
2023-05-12 14:50:19 +08:00
Paul Wise 49e52ad719
Do not fail when otptool is installed but oathtool is not installed
Fixes: commit 0aadd4c82c
2023-05-12 14:50:18 +08:00
Paul Wise c99a469bcc
Fix link to the Fedora pass-otp package 2023-05-12 14:50:18 +08:00
Paul Wise 39b2e814b4
Update http URLs to https
Avoid modifying embedded code copies, they should be fixed upstream
and either removed from pass-otp or updated from upstream.
2023-05-12 14:49:42 +08:00
Paul Wise 7267bb8878
Fix typos
Suggested-by: codespell
2023-05-12 14:49:41 +08:00
Leonard Janis Robert König a364d2a71a README.md: Add example use of wl-clipboard to get QR from clip 2022-02-12 19:21:05 -08:00
Tad Fisher 3ba564ca9f Handle otpauth:// URIs with port numbers 2022-02-12 19:20:15 -08:00
Tad Fisher 1b30683e95 Update sharness 2022-02-12 19:20:15 -08:00
Tad Fisher 3827922207 Handle -c/--clip in cmd_otp_uri 2022-02-12 17:54:50 -08:00
Tad Fisher 951e126354 flake: Add derivation for pass with local otp build 2022-02-12 17:54:50 -08:00
Tad Fisher e0a023df7e Add Github workflow 2022-02-12 17:31:32 -08:00
Tad Fisher 9a7f7c91cd Resolve some shellcheck warnings 2022-02-12 17:19:39 -08:00
Tad Fisher de580749e2 Add Nix flake 2022-02-12 17:19:39 -08:00
Mohit Agarwal 8698286567 update link for ZBar
Quoting from the README at the new link:

> As its development stopped in 2012, I took the task of keeping it updated with the V4L2 API. This is the main repository for it.
2022-01-22 11:04:03 -08:00
apiraino cabf09206d remove now redundant env var 2020-11-29 15:07:37 -08:00
apiraino 360a5a80b6 Fix extension dir env var 2020-11-29 15:07:37 -08:00
apiraino 98bf0e2c3a Use standard XDG bash completion dir 2020-11-29 15:07:37 -08:00
apiraino 7ae5de36f9 even more helpful 2020-11-29 15:07:37 -08:00
apiraino 1470cb0648 be more helpful 2020-11-29 15:07:37 -08:00
apiraino 3a8987a0e7 update README 2020-11-29 15:07:37 -08:00
Jan Baier 0aadd4c82c Add support for using Pass::OTP
Pass::OTP is alternative implementation of One-time passwords with more
features, namely it can support parsing otpauth:// links and custom
character classes. This can close #97
2020-09-12 13:02:49 -07:00
kousu 24330b81d6 OpenBSD patches to installer 2020-09-12 12:59:36 -07:00
Niklas Hambüchen 7be39f2867 README: Also describe how to use zbarcam
I find this one of the most common use cases.
2020-09-12 12:51:19 -07:00
Malte Kiefer e57acb084e changed path to the crux port 2020-09-12 12:50:21 -07:00
axel simon 853c5517bb add Fedora install instructions 2020-09-12 12:49:50 -07:00
Martin Kletzander 99419824e1 Add support for quiet output of otp code command
When using this option the output of `pass otp -q ...` is predictable and can be
further used without parsing even when the password store is a repository as
well.  This is useful, for example, when using rofi-pass.

The patch is written in a way that other commands can optionally use the quiet
option for otp_insert as well.
2020-09-12 12:49:24 -07:00
Mateusz Piotrowski 3b11688682 Mention that GNU make is required to run make test 2020-09-12 12:48:16 -07:00
Lucid One 2ffde9f866 Mention browser support
It's probably worth mentioning to new users that `passff` now supports using `pass-otp` for OTP authentication.
2020-09-12 12:47:43 -07:00
Vincent Bernat 42307e4ec3 Do not remove password when new line is missing
If the password file doesn't end with a new line, the last line is
ignored because `read -r` will return a non-zero status, while still
setting the `$line` variable. Some implementations of pass, like
`gopass` do not create a password file ending with a new line.
Therefore, using `pass otp append` on these files will result in the
password being remove from the file.

To fix that, we ensure we insert the new line if it is missing.

I have added a test, but this is not enough to catch the problem
because `pass` will add the new line even when it is missing (for
example, using `echo -n | pass insert -e passfile` won't help to
trigger the bug).
2020-09-12 12:46:09 -07:00
Morten Linderud 6328ba84db Added docs, test and completion 2020-09-12 12:43:42 -07:00
Morten Linderud 47acf1407c Added path_prefix for insertions
Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-09-12 12:43:42 -07:00
Tad Fisher a69c9f98ea
Merge pull request #113 from apiraino/fix-uninstall
Fix uninstall script
2020-06-12 18:21:57 -07:00
apiraino 3845c6e6e6 Fix uninstall script 2020-05-06 11:24:58 +02:00
Loic Pefferkorn e2864b14c8 Update install instructions for macOS/Brew 2018-12-22 11:55:09 -08:00
Tad Fisher 1e9d10ca75 Version 1.2.0 2018-11-15 12:17:12 -08:00
Tad Fisher 983a63bac2 Update Nix instructions 2018-11-15 12:12:14 -08:00
Tad Fisher 903e240327
Merge pull request #93 from SimplyDanny/brew-install-fix
Fix installation instructions for Brew
2018-11-01 08:46:00 -07:00
Danny Moesch e7d7073052 Fix installation instructions for Brew 2018-11-01 13:53:46 +01:00
Danny Moesch 395c9628c0 Use universal way to get the prefix of the Brew installation 2018-11-01 13:50:24 +01:00
Tad Fisher 904c1a1ef1
Merge pull request #92 from Lem/develop
Bump to 1.7.3
2018-10-28 16:37:44 -07:00
Lemming bfa940fde7 Bump to 1.7.3
as of today 1.7.3 is the latest stable
2018-10-27 09:32:15 +02:00
Tad Fisher 30fa787c3e
Merge pull request #90 from beli3ver/patch-1
added crux linux
2018-10-20 19:38:32 -07:00
Tad Fisher 234a561065
Merge pull request #91 from crt/feature/bash_completion
Add bash_completion support
2018-10-20 19:37:26 -07:00
Zoltan Kertesz 96ee01de6c Add bash_completion support 2018-10-19 14:50:57 +01:00