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/chris4795/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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine Phone Desktop Mode or "Standard" Gnome Desktop on PinePhone? 4920441 4 578 05-11-2021, 02:42 AM
Last Post: wizmart
  Fedora + Phosh for PinePhone njha 55 31,395 05-10-2021, 03:56 AM
Last Post: wizmart
  Slarm64 on PinePhone [Unofficial Slackware ARM - 64 bit] acid andy 8 2,157 05-08-2021, 11:05 PM
Last Post: mara
  PinePass - Mobile friendly GUI for pass mpnordland 2 310 05-01-2021, 05:46 PM
Last Post: linmob
  GTK Rust mobile Linux client for Signal Be. 13 5,071 04-28-2021, 11:38 AM
Last Post: Be.
  Adafruit Pyloton Open Source Bike computer on the PinePhone? Peter Gamma 0 245 04-02-2021, 06:37 PM
Last Post: Peter Gamma
  PureOS on Pinephone dukla2000 83 48,230 04-02-2021, 07:46 AM
Last Post: darkdragon-001
  openSUSE for Pinephone Alefnode 68 28,809 03-21-2021, 11:43 AM
Last Post: andresbs
  freeglut3 on the PinePhone Samuel Venable 1 386 03-10-2021, 03:06 PM
Last Post: nas
  Easiest way to use Android applications on Pinephone esud 3 1,554 02-21-2021, 12:53 PM
Last Post: reGisterGan578

Forum Jump:


Users browsing this thread: 1 Guest(s)