Giter VIP home page Giter VIP logo

Comments (16)

X1nto avatar X1nto commented on August 25, 2024 2
otpauth://totp/account?secret=secret&issuer=issuer&algorithm=sha1&digits=6&period=30

(I also censored the account since it would reveal the issuer in my case)

Oh, I think I found the culprit. The code checks for "SHA1", not "sha1". I'll push the fix to v6.0.1.

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024 1

I can confirm it works perfectly 🎉 ! Thank you !

from mauth.

X1nto avatar X1nto commented on August 25, 2024

Could you try rotating your phone? I heard there's an issue with some QR codes requiring rotation

from mauth.

hellpe avatar hellpe commented on August 25, 2024

Could you try rotating your phone? I heard there's an issue with some QR codes requiring rotation

Rotating the phone does not fix the issue, either with or without auto-rotate

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024

Same issue here ! Trying to scan a QRCode from my computer's Authenticator app (https://flathub.org/apps/com.belmoussaoui.Authenticator), and it does not work. Other QR Code scanning apps can scan it successfully.

from mauth.

X1nto avatar X1nto commented on August 25, 2024

Tested on my device and Firefox works just fine with the latest version. Unfortunately, there's not much I can do.

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024

Decided to try something quite absurd as a last resort by printing the QR Code and trying to read it, thinking it maybe was an issue with the computer screen. And, nope, not working :/...

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024

Also, ZXing (by installing org.google.zxing.client.android.apk from F-Droid) does work in reading the QR Code without issue, so it doesn't seem to be a library issue.

from mauth.

X1nto avatar X1nto commented on August 25, 2024

Decided to try something quite absurd as a last resort by printing the QR Code and trying to read it, thinking it maybe was an issue with the computer screen. And, nope, not working :/...

I think the issue might've been with the camera library. Could you try with v0.6.0 I released yesterday? It should include the updated CameraX library.

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024

That does not solve it unfortunately :/...

from mauth.

X1nto avatar X1nto commented on August 25, 2024

I'm afraid I can't exactly fix the issue then. Everything works just fine on my devices. If you have any specific QR Codes which work on other authenticators but don't work on Mauth, feel free to let me know. (I'm asking for specific QR Codes because some have a slightly different format of the OTP string which Mauth may not support, so this could help me add support for more and more authentication types)

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024

Okay, so, the URI I get from scanning the QR Code is in this format:

otpauth://totp/account?secret=secret&issuer=issuer&algorithm=algorithm&digits=digits&period=period

from mauth.

X1nto avatar X1nto commented on August 25, 2024

Could you make it so the only "censored" parts are the secret and the issuer? everything else is very essential for me to test how the parsing works

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024
otpauth://totp/account?secret=secret&issuer=issuer&algorithm=sha1&digits=6&period=30

(I also censored the account since it would reveal the issuer in my case)

from mauth.

LyesSaadi avatar LyesSaadi commented on August 25, 2024

I can confirm that's the issue by creating a new QR Code with the SHA1 all caps !

from mauth.

X1nto avatar X1nto commented on August 25, 2024

I can confirm that's the issue by creating a new QR Code with the SHA1 all caps !

Tested it myself as well (and added instrumentation tests for automatization, should've done it a looooooooong time ago), and works just fine. Can you confirm that scanning works just fine now?

from mauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.