Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. 2FAuth
  3. HowTo: migrating from Two Factor Authenticator browser extension to 2FAuth

HowTo: migrating from Two Factor Authenticator browser extension to 2FAuth

Scheduled Pinned Locked Moved 2FAuth
1 Posts 1 Posters 142 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #1

    I have been using the Two Factor Authenticator browser extension for a while now. However, it's not been updated for a while. I also have to keep reminding myself to keep a copy of all the 2fa and also it's not really safe to have 2fa in a browser extension....

    It's straightforward to migrate to the 2FAuth:

    • First, export all the keys. Firefox -> Extension Preferences -> Export . This gives a json file.

    d6d290b7-937c-46d1-9551-7fcd302ffe30-image.png

    • There is UI in 2FAuth to import keys. However, this wants a line separated otpuri . Syntax for this is otpauth://TYPE/LABEL?PARAMETERS . Example otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example . Maybe , chatgpt helps with the conversion here 🙂 But , I had this via node REPL:
    $ node
    Welcome to Node.js v20.12.2.
    Type ".help" for more information.
    > data = JSON.parse(fs.readFileSync('/home/girish/Downloads/totp.json', 'utf8'))
    > data.otp_list.forEach(otp => console.log(`otpauth://totp/${encodeURIComponent(otp.name)}?secret=${otp.key}&issuer=${encodeURIComponent(otp.name)}`))
    
    • The above will generate like this
      be36c9b8-f4ea-4e82-86b3-402b1c8e55eb-image.png

    • Copy/paste the output into the Import UI of 2FAuth. That's it!

    dec93cfa-29f4-4164-8ce3-6a1c73e8b1ab-image.png

    1 Reply Last reply
    3
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Bookmarks
    • Search