flathub / com.yubico.yubioath

https://flathub.org/apps/details/com.yubico.yubioath
9 stars 9 forks source link

com.yubico.yubioath does not work on Fedora 41 #101

Open edgan opened 1 month ago

edgan commented 1 month ago

This flatpak doesn't work on Fedora 41. I am aware of the pcsc-lite 2.3.0 issue. I have seen the reference in the README.md, For distros that use version 2.3.0 and above use beta version of this flatpak. The problem is all the links I found for installing it return a 404. I did try using flatpak remote-ls -d | grep -i yubico to look for it. I have tried flatpak install app/com.yubico.yubioath/x86_64/beta, flatpak install com.yubico.yubioath/x86_64/beta, and flatpak install com.yubico.yubioath//beta. I have also tried googling it, and searching the Github issues.

flatpak install https://dl.flathub.org/build-repo/123756/com.yubico.yubioath.flatpakref
error: Can't load uri https://dl.flathub.org/build-repo/123756/com.yubico.yubioath.flatpakref: Server returned status 404
flatpak install --user https://dl.flathub.org/build-repo/124654/com.yubico.yubioath.flatpakref
error: Can't load uri https://dl.flathub.org/build-repo/124654/com.yubico.yubioath.flatpakref: Server returned status 404
flatpak install --user https://dl.flathub.org/build-repo/124680/com.yubico.yubioath.flatpakref
error: Can't load uri https://dl.flathub.org/build-repo/124680/com.yubico.yubioath.flatpakref: Server returned status 404

Instead of just saying install the beta, please give us a link or instructions of how to do it.

edgan commented 1 month ago

Here are the steps I went through to build it myself. This process installed the beta in parallel to the stable version from Flathub. It set the beta version as the "current" version. So I just had to run it afterward. This needs to be done per system.

sudo dnf install flatpak-builder
git clone https://github.com/flathub/com.yubico.yubioath.git
cd com.yubico.yubioath
git checkout beta
git submodule update --init --recursive
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir com.yubico.yubioath.yml

For some unknown reason on the second system I did this process I had to open the GUI twice. The first time I got the can't connect to pcsc error, and after that it worked.

edgan commented 1 month ago

I figured out how to install the beta.

flatpak uninstall com.yubico.yubioath
flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak install flathub-beta com.yubico.yubioath

https://discourse.flathub.org/t/how-to-use-flathub-beta/2111

Erick555 commented 1 month ago

You may open PR that adds link to flathub docs: https://docs.flathub.org/docs/for-users/installation/#flathub-beta-repositoryhttps://docs.flathub.org/docs/for-users/installation/#flathub-beta-repository

joelpurra commented 2 weeks ago

Alternative workaround for Fedora F41 Atomic (Silverblue): using ykman in a toolbox.

# NOTE: using the default toolbox image for the system; here fedora f41.
toolbox enter
sudo dnf install ykman
ykman oath accounts code

It's quite fickle to access the yubikey from both the system and the toolbox though; they seem to fight for control over PC/SC.