aboutsummaryrefslogtreecommitdiff
path: root/otp.bash
AgeCommit message (Collapse)Author
2023-08-26Add passage supportHEADmasterNicholas Johnson
2022-02-12Handle otpauth:// URIs with port numbersTad Fisher
2022-02-12Handle -c/--clip in cmd_otp_uriTad Fisher
2022-02-12Resolve some shellcheck warningsTad Fisher
2020-09-12Add support for using Pass::OTPJan Baier
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-12Add support for quiet output of otp code commandMartin Kletzander
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-12Do not remove password when new line is missingVincent Bernat
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-12Added docs, test and completionMorten Linderud
2020-09-12Added path_prefix for insertionsMorten Linderud
Signed-off-by: Morten Linderud <morten@linderud.pw>
2018-09-10Fix getopt missed commaxPMo
pass-otp doesn't correctly read issuer, and will infinite loop on the `while true`
2018-06-28Version 1.1.1Tad Fisher
2018-06-28Tolerate base64 padding in secretTad Fisher
2018-06-28Don't use herestringsRemus Buzatu
2018-06-03Fix behaviour for otp append as wellxPMo
2018-05-01fix missing secret name when reading secret in `cmd_otp_append`Benjamin Denhartog
closes #75
2018-03-17otp-insert: require only one of `--issuer` or `--account`Benjamin Denhartog
closes #68
2018-03-06Added support for `pass otp --version`Lucid One
2018-03-04Fail for `otp code` on missing secret (#46)Tad Fisher
2018-02-17Fixed lint errors (#49)Lucid One
2018-01-21Fix Travis (#47)Tad Fisher
* Install shellcheck manually * Use `read` instead of built-in glob splitting
2018-01-21Use a compatible to lowercase syntax for bash < 4 (#41)Marc-Aurèle Brothier
2018-01-21Add secret option (#43)Osamu Matsumoto
* Support insert/append secret directly * Validate issuer and accout name option in secret directly mode * Add test for secret option * Fix up docs
2017-06-04Make sure $otp_algorithm is lowercase (#33)Bartłomiej Piotrowski
Otherwise oathtool is unhappy.
2017-03-20Add cmd_otp_append for appending OTP secrets to existing passfilesTad Fisher
2017-03-20Generate default passname from URI label; remove url paramTad Fisher
2017-03-20Fix commit messageTad Fisher
2017-03-20Update READMETad Fisher
2017-03-20Use expect for interactive testsTad Fisher
2017-03-19Support --echo and reading key from stdinTad Fisher
2017-03-19Remove otp_insert_spec and related insert commandsTad Fisher
2017-03-19Update documentation.Tad Fisher
2017-03-19Parse key URIs to generate OTP codesTad Fisher
2017-03-19Fix HOTP URI parsingTad Fisher
2017-03-19cmd_otp_uri: Show first line starting with otpauth:// in passfileTad Fisher
2017-03-19Replace cmd_insert_$type with cmd_insert_spec; insert key urisTad Fisher
2017-03-18Add cmd_insert_uri; refactor testsTad Fisher
2017-03-18Parse key URIsTad Fisher
2017-03-16Fix shellcheck issuesTad Fisher
2017-03-16Don't initialize passfile twiceAimilius
2017-03-13Initialize $INNER_GIT_DIRAimilius
2017-02-14Initial commitTad Fisher