Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Google authenticator ios app giving invalid code #684

Open
umr55766 opened this issue Sep 28, 2019 · 6 comments
Open

Google authenticator ios app giving invalid code #684

umr55766 opened this issue Sep 28, 2019 · 6 comments

Comments

@umr55766
Copy link

iphone 6s
ios 13.1

Google authenticator app giving invalid key for most of the keys.
Even Key Uri given in example at https://github.com/google/google-authenticator/wiki/Key-Uri-Format#examples doesn't work. Where as the same uri works in other verification apps.

image

@ThomasHabets
Copy link
Contributor

Interesting. Since I don't have an iPhone, could you try removing parameters to see what's actually rejected? I suspect it may be the spaces in the issuer or something, but could you try to create a minimal example not accepted that should be?

@umr55766
Copy link
Author

umr55766 commented Oct 10, 2019

@ThomasHabets I am bit occupied this week. I'll try to investigate a little more on this on weekend. Might get back with more details.

@nilsburg
Copy link

nilsburg commented Nov 4, 2019

I am having the same issue:
iPhone 6S, iOS 13.2

I've been testing with several parameters:
Works:

  • otpauth://totp/myusername@myapp?secret=plataforma
  • otpauth://totp/myusername@myapp?secret=pltaforma

Does not work:

  • otpauth://totp/myusername@myapp?secret=plataforma1
  • otpauth://totp/myusername@myapp?secret=pltaformas

All cases works well with Microsoft Authentificator

@leodutra
Copy link

Same on Android 9, ASUS Zenfone 5Z.

@CraigyHK
Copy link

Hi All,

We have been having this issue with one of our customers also. It works on Android perfectly, not on iPhone though (I don't have further details as to which version he has etc).

However there was a few stackoverflow answers that suggested it was the spaces within the Issuer and Label, and I have since used url encoding (as suggested) but it still throws the same error.

Figured I would post my findings in case it helps anyone fixing this :)

@amzbiz
Copy link

amzbiz commented Nov 4, 2020

I simply removed the space in our name and it fixed the issue. It was being encoded but clearly it was breaking something on the iPhone, removing the space fixed the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants