問題タブ [google-2fa]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - phpqrcode and google authenticator - not sure of the format of things and how to get it to validate correctly
I am using phpqrcode to create a qrcode for use with two-factor authentication. I have always used the Google Authenticator app for all my 2FA needs. While I can create the qrcode I am not sure of the exact format so it validates correctly. As of now when I try to scan it I get 'invalid barcode' back from the app.
Do I use the secret, the url, or combination of both when generating the qrcode? I'm missing something stupid and I'm sure it's because I don't understand where and how to use the params and otpauth:// url.
java - sam stevens totp の使用 - 動作しない
GitHub で、トークン (TOTP) を生成およびチェックするプロジェクトを見つけました。私はそれを機能させようとしましたが、失敗しました。コードは次のとおりです。
上記のように、プロジェクトを使用して QR コードを生成し、認証アプリにスキャンしてトークンを生成しました。どのようなコードをフォームに入力しても、認証アプリは失敗します。ここで私が間違っていることを誰かに説明してもらえますか?