two-factor-authentication

django-two-factor-auth can't access admin site

╄→尐↘猪︶ㄣ 提交于 2019-12-10 22:35:58
问题 I am using django-two-factor-auth for a webapp. I cannot access the admin page. I know I am entering the correct credentials. When I input incorrect credentials, I get an appropriate error message. When I input the correct credentials, the page simply reloads with this URL: http://localhost:8080/account/login/?next=/inveskore/ These are my settings related to two_factor: LOGIN_URL = 'two_factor:login' LOGIN_REDIRECT_URL = '/inveskore' TWO_FACTOR_SMS_GATEWAY = 'two_factor.gateways.twilio

2nd factor verification on every command through ssh.net

让人想犯罪 __ 提交于 2019-12-05 23:59:05
I am connecting to a Unix server using SSH.NET with the following code ssh = new SshClient("myserver.univ.edu", Username, Password); ssh.Connect(); The connection goes through and appears to generate no exception. The server is set up to require two factor authentication, but I get no prompt on my phone (using that as physical authenticator/OTP device). But the connection seems to be ok. I then issue a command with this code: SshCommand NewLookup = ssh.CreateCommand("newlookup " + IpNameOrAddress.Text)) LogText.Text += NewLookup.Execute().Replace("\n", Environment.NewLine); And then I get the

How to add more devices to AWS root account MFA

不羁的心 提交于 2019-12-04 10:14:48
问题 I already have Google authenticator installed in my iPhone and I'm using it to signin to my AWS root account. I want to add the ability to login with MFA using my Android phone as well, using a corresponding token-generator Android app. Is it possible to add a second device and how exactly? Or is AWS root account MFA bind to one (virtual) device? 回答1: You can only have one MFA device tied to your root account. You would need to setup a separate IAM user account for your separate device. From

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

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

How to add more devices to AWS root account MFA

房东的猫 提交于 2019-12-03 04:27:27
I already have Google authenticator installed in my iPhone and I'm using it to signin to my AWS root account. I want to add the ability to login with MFA using my Android phone as well, using a corresponding token-generator Android app. Is it possible to add a second device and how exactly? Or is AWS root account MFA bind to one (virtual) device? You can only have one MFA device tied to your root account. You would need to setup a separate IAM user account for your separate device. From the FAQ : Q. Can I have multiple authentication devices active for my AWS account? Yes. Each IAM user can

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:

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

痴心易碎 提交于 2019-12-02 13:56:52
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. 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: Introduced check for little-endian byte ordering and convert to big-endian as necessary. Introduced parameter for

How to populate OTP from user's message box to application directly in iPhone? [duplicate]

 ̄綄美尐妖づ 提交于 2019-11-30 09:58:06
This question already has an answer here: iPhone application – reading SMS 3 answers I am working on an internet trading application with its mobile and iPhone applications available. With the recent market trend, we are working on including two-factor authentication. For that, we will be sending a one-time password as a sms on user's registered mobile number. Is there a way,that the OTP can get automatically populated into application from user's message box in iPhone? What algorithm should I use to make my app read user's message box? Thanks in advance:) Charan Giri You can Access SMS from

2FA give problems when pushing to GitHub

倾然丶 夕夏残阳落幕 提交于 2019-11-30 06:43:54
I've clone a project on GitHub on my Raspberry Pi, create a new branch and push everything to the repository. For this I needed next commands: git clone https://www.github.com/heinpauwelyn/my_repo git checkout -b raspberry git push origin raspberry The problem I've got is that I can't push the branch to GitHub.com. I need to enter my username and password, but I can't use 2FA for that. Is this a bug in Git or GitHub and is there a way to get an authentication key and enter it? I'll not enable the 2FA on GitHub. with 2FA you have to create a personal access token to use as a password when