Google Authenticator on Apple devices, certain secrets are not valid

后端 未结 4 1712
闹比i
闹比i 2021-01-18 02:26

We\'ve incorporated two factor authentication into one of our applications using Google Authenticator. In QA, something really weird turned up. While I managed to fix it,

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 02:38

    It is not only the key lenght that is important

    Here is how a sample URI should look like: otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example

    In your case, there is no "issuer" or "accountname" in the URI, both are recommended.

    PS. just for your info , Google Authenticatior does not support very long keys as well.

提交回复
热议问题