google-authenticator

Google Authenticator code does not match server generated code

狂风中的少年 提交于 2020-01-12 22:29:18
问题 Background I'm currently working on a two-factor authentication system where user are able to authenticate using their smartphone. Before the user can make use of their device they need to verify it first. For this they need to scan a QR code I give them and enter the code that subsequently shows. Problem The scanning of the QR code works fine, and it gets read correctly by the Google Authenticator app. However, the generated codes don't match with the ones I'm generating on the server. What

How do I do “Authenticating Your Client with Google”?

这一生的挚爱 提交于 2020-01-04 03:51:14
问题 How do I Authenticating Your Client correctly with google? I'm following this tutorial https://developers.google.com/android/guides/client-auth I copy this text into my command prompt - keytool -exportcert -list -v \ -alias androiddebugkey -keystore %USERPROFILE%.android\debug.keystore I get this message back "-alias is not recognized as an internal or external command, operable program or batch file." What am doing wrong? 回答1: The copied command shouldn't contain the backslash after -v and

Automatically launch Google Authenticator app on iOS

痞子三分冷 提交于 2019-12-22 09:11:33
问题 Is there a supported way of launching Google Authenticator on iOS? I want to make it easier for customers to open the app and copy out the time-based code, before pasting it back into my app. I've empirically discovered that this (Swift) code will launch the app: UIApplication.sharedApplication().openURL(NSURL(string: "otpauth://")!) ...but I want to know if there is a better, supported way. Specifically, is the otpauth:// protocol supported without arguments to simply launch the app? 回答1:

How to generate a QR Code for Google Authenticator that correctly shows Issuer displayed above the OTP?

一笑奈何 提交于 2019-12-20 08:29:14
问题 Warning: sharing your TOTP seed with third-parties breaks the very basic assumption of multi-factor authentication that the TOTP seed is secret . So, I'm aware of the documentation on this, found here: Google Authenticator Key URI Format When I follow this example from that page: otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example And I 'splice' it into a Google Charts URL, thus: https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/Example

Understanding How Google Authenticator app works

时光怂恿深爱的人放手 提交于 2019-12-13 07:41:37
问题 I have seen many two factor authentication apps like the google authentication app. The app works offline and is resets the key on the phone every 30 seconds. So how the the server know which keys are valid? I have having trouble understanding this? And If i were to create such an app myself. How can i do so? 回答1: Google Authenticator uses Time-based One-time Password Algorithm. It uses the current time and a shared secret key to compute the code. The generated codes validate as long as the

Android : AccountPicker set Light Theme

会有一股神秘感。 提交于 2019-12-09 15:59:20
问题 Is it possible to set the theme of picker dialog ? import com.google.android.gms.common.AccountPicker; .... String[] accountTypes = new String[]{"com.google"}; Intent intent = AccountPicker.newChooseAccountIntent(null, null, accountTypes, false, null, null, null, null); activity.startActivityForResult(intent, REQUEST_CODE_PICK_ACCOUNT); My base app theme is android:Theme.Light but that dialog is dark. Thanks. 回答1: If you wish to change the theme of the dialog, you should change the

Google Authenticator implementation in Perl

不想你离开。 提交于 2019-12-04 09:46:38
问题 I am looking for a simple Perl implementation that verifies a Google authenticator token that has been created using a server side secret. For instance, The following Google URL allows you to encode a server secret in base32 format (in the below case the secret is e4ytonjeim4hcsrhja5fe5kqfu ) as a QR code that can be read from Google authenticator app (see image below): https://chart.googleapis.com/chart?cht=qr&chs=100x100&chl=otpauth%3A%2F%2Ftotp%2Fmysite%3A29%3Fsecret

Android : AccountPicker set Light Theme

*爱你&永不变心* 提交于 2019-12-04 03:52:47
Is it possible to set the theme of picker dialog ? import com.google.android.gms.common.AccountPicker; .... String[] accountTypes = new String[]{"com.google"}; Intent intent = AccountPicker.newChooseAccountIntent(null, null, accountTypes, false, null, null, null, null); activity.startActivityForResult(intent, REQUEST_CODE_PICK_ACCOUNT); My base app theme is android:Theme.Light but that dialog is dark. Thanks. If you wish to change the theme of the dialog, you should change the newChooseAccountIntent to zza and add two integer arguments. The first one is for overriding the theme and setting it

Google Authenticator implementation in Perl

强颜欢笑 提交于 2019-12-03 05:06:23
I am looking for a simple Perl implementation that verifies a Google authenticator token that has been created using a server side secret. For instance, The following Google URL allows you to encode a server secret in base32 format (in the below case the secret is e4ytonjeim4hcsrhja5fe5kqfu ) as a QR code that can be read from Google authenticator app (see image below): https://chart.googleapis.com/chart?cht=qr&chs=100x100&chl=otpauth%3A%2F%2Ftotp%2Fmysite%3A29%3Fsecret%3De4ytonjeim4hcsrhja5fe5kqfu%26issuer%3Dmysite Once the QR code is scanned into the authenticator app it produces tokens like

Is there a tutorial on how to implement Google Authenticator in .NET apps?

橙三吉。 提交于 2019-12-03 01:43:28
问题 I'm looking for a tutorial on how to use Google Authenticator in .NET-apps. Does this exist, and if so, where can I find it? I understand that this can be used to add two-factor-authentication to your own apps. 回答1: While playing around with Google Authenticator, I came across this question and in particular the code contributed by Espo. I personally wasn't satisfied with the conversion from Java to C# and so I thought I would share my version. Aside from heavily refactoring the code: