Menu

Authentication code support on Linux

...
2024-12-20
2025-03-29
  • ...

    ... - 2024-12-20

    Password Safe is a great product and I've used it for years. I was excited to see the it can produce six digit authenticator codes by providing a "Key" on the Additional tab, Authenticator Secret field of an entry.

    So I switched several accounts to use this as a second factor authentication, including for this SourceForge id. But now when I travel, with my ubuntu laptop, I find myself locked out. :-( The "Auth Code" options that I see on Windows on right click are absent from v1.20. And the same for the Edit panels.

    Does Linux v1.20 not support the authenticator codes? Is support on the roadmap? I see:

    GH1301 TOTP authorization code can be used in autotype via '\2'

    in the release notes (https://github.com/pwsafe/pwsafe/blob/1.20.0/docs/ReleaseNotesWX.md) so I thought that this version would show the codes.

    Please tell me that I just need to flip a bit in a page or something to use this wonderful feature on Linux.

    Thanks, Dom

     
  • Rony Shapiro

    Rony Shapiro - 2024-12-21

    Adding TOTP support to the wx version is still on the todo list.

    For now you can use the --generate-totp option in the cli version, pwsafe-cli (installed along with pwsafe).

     
  • ...

    ... - 2025-01-03

    Hi Rony. Thank you for your quick response. I appreciate it. Sorry for getting back to you so late. The holidays were hectic.

    The command line works well.

    $ pwsafe-cli mysafe.psafe3 --search='SourceForge' --generate-totp --subset='Group/Title==SourceForge'
    Enter Password [mysafe.psafe3]:xxxx
    Authentication Code: 035077 valid for approximately 19 seconds.
    

    A couple of suggestions for the future...
    * The CLI is a little confusing. I have two entries for SourceForge in my safe and when I ran without the --subset option, I got two results but I couldn't see which was which because they title isn't included in the output. As you can see, I got it to work with --subset. But I'm a bit unsure what "exactly similar" means for the "=" operation.
    * It would be nice if TOTP was mentioned in the documentation, under "Edit Menu" -> "Display Auth Code", just to tie the things together.

     
  • Trevor Vance

    Trevor Vance - 2025-01-04

    hi Dom,

    I'm a linux user as well, so what I've done as a workaround is to store the key in the notes. Then use oathtool to generate the TOTP. I've found this tutorial to be quite helpful for that. I set an alias for this and it works quite well for me.

     
  • rafaelx

    rafaelx - 2025-02-03

    Hello everyone.

    Just for your information, there is a TOTP implementation proposal on GitHub.

    Cheers
    Rafael

     
    👍
    1
  • rafaelx

    rafaelx - 2025-03-29

    TOTP was released with version 1.21.

     
    👍
    1
  • ...

    ... - 2025-03-29

    Thank you. I just updated my laptop and then authentication code works well through the GUI.
    Thanks for adding this.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.