HowTo: Get a passcode from DUO Mobile working on the Pinephone
#1
Hey All,

I was forced to use Duo Mobile to use with my work, and I wanted to share a couple of experiences to help anyone else that may have this issue too. First, DUO now supports WebAuthn, I had to ask my IT department to get it to work. This will allow you to use a Yubikey (or other U2F device) on Firefox (as normally it is Chrome only). I just ordered a USB-C Yubikey as well, so I am curious to see if I can get that working on the Pinephone.

I was also successful in getting a passcode working with Gnome Authenticator, thus not needing the DUO mobile app (for those who don't have to use DUO, the "official" way to get a passcode working is to use their app, which is an Andriod/iOS app only. It does not natively support using third party apps, and I suspect that is by design). There is a python script to get it working:

https://github.com/kop316/duo-cli

You can use just the python script only you so choose, but you can also export the secret to your favorite 2fa app (like Gnome-authenticator). Use the

Code:
./duo_export.py

script to export your secret. Note that it uses HOTP, do you have to incriment it at every log in.

As a quick note, look at all of the "Data" in duo_activate.py , and make sure they are reasonable values too. I can only assume they have those values to check them.
  Reply
#2
(02-22-2021, 12:27 PM)kop316 Wrote: Hey All,

I was forced to use Duo Mobile to use with my work, and I wanted to share a couple of experiences to help anyone else that may have this issue too. First, DUO now supports WebAuthn, I had to ask my IT department to get it to work. This will allow you to use a Yubikey (or other U2F device) on Firefox (as normally it is Chrome only). I just ordered a USB-C Yubikey as well, so I am curious to see if I can get that working on the Pinephone.

I was also successful in getting a passcode working with Gnome Authenticator, thus not needing the DUO mobile app (for those who don't have to use DUO, the "official" way to get a passcode working is to use their app, which is an Andriod/iOS app only. It does not natively support using third party apps, and I suspect that is by design). There is a python script to get it working:

https://github.com/kop316/duo-cli

You can use just the python script only you so choose, but you can also export the secret to your favorite 2fa app (like Gnome-authenticator). Use the

Code:
./duo_export.py

script to export your secret. Note that it uses HOTP, do you have to incriment it at every log in.

As a quick note, look at all of the "Data" in duo_activate.py , and make sure they are reasonable values too. I can only assume they have those values to check them.

github url 404
  Reply
#3
(01-16-2022, 03:07 PM)transfer76 Wrote: github url 404

code moved to gitlab:

https://gitlab.com/kop316/duo-cli
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble building pinephone-keyboard tools 64_Tesseract 0 10 8 hours ago
Last Post: 64_Tesseract
  Struggle to install LibreOffice on the PinePhone Peter Gamma 9 286 05-20-2022, 03:27 AM
Last Post: Peter Gamma
  openSUSE for Pinephone Alefnode 71 61,632 05-15-2022, 10:44 AM
Last Post: flembcke
  Latest firmware for PinePhone modem! Subsentient 105 70,114 05-14-2022, 08:56 PM
Last Post: kk22
  Slack on PinePhone Adam Seline 2 1,091 05-01-2022, 04:04 AM
Last Post: nickolas
  Mepo - Minimalist and hackable OSM map viewer for mobile linux mil 20 2,287 04-19-2022, 10:16 AM
Last Post: biketool
  Amazfish on Pinephone pagesix1536 9 4,934 04-11-2022, 12:50 PM
Last Post: thomzane
  AVMultiphone on Pinephone Juergen 8 6,633 04-04-2022, 12:47 PM
Last Post: Juergen
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 19 6,862 01-19-2022, 03:03 PM
Last Post: acid andy
Video PinePhone "click" or "tic" GrapeJuice 2 704 01-10-2022, 02:39 PM
Last Post: GrapeJuice

Forum Jump:


Users browsing this thread: 1 Guest(s)