Questions tagged [two-factor-authentication]

Is an approach to authentication which requires the presentation of two or more authentication factors.

Two-factor authentication (TFA, T-FA or 2FA) is an approach to authentication which requires the presentation of two or more of the three authentication factors: a knowledge factor ("something the user knows"), a possession factor ("something the user has"), and an inherence factor ("something the user is").

See also and the Security.StackExchange multi-factor tag.

417 questions
122
votes
10 answers

Git authentication fails after enabling 2FA

I just enabled 2FA (I can't think of any other changes I made) and git asked for my username and password. I provided both, but they were "wrong". I tried many of the solutions here: Git push requires username and password but that didn't work. In…
Max Bileschi
  • 1,618
  • 2
  • 15
  • 18
100
votes
2 answers

Sending email fails when two factor authentication is on for Gmail

I am using my Gmail account and smtp.gmail.com inside my web application to test and send email. when two factor authentication is ON for my Gmail account, it fails to send the email, however when I turn it off, the web application sends email…
user217648
  • 2,772
  • 7
  • 32
  • 53
56
votes
2 answers

Create partial login cookie for External Authentication

Recently I've implemented 2FA for my WebAPI using IdentityServer3. Everything works as expected if the login is made locally (using the IUserService). Now, I want to be able to do this login by issuing a partial login cookie. This means that I have…
50
votes
6 answers

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

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.
Espo
  • 39,502
  • 20
  • 127
  • 156
35
votes
2 answers

How Do Hardware Token Devices work?

Recently, my bank sent me this tiny device that generates a unique code that must be used when performing online transactions, all the device does is generate this unique code when I press a particular white button and it doesn't look like it…
33
votes
5 answers

How to add more devices to AWS root account MFA

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…
Ion
  • 973
  • 2
  • 12
  • 17
29
votes
1 answer

How to add Google Authenticator to my website?

I have a web app that is Angular2 on the front-end and NodeJS on the back-end. I want to allow clients to use Google Authenticator to make their accounts more secure. How can I implement/use Google Authenticator in my website? I cannot find an API…
26
votes
5 answers

2FA give problems when pushing to GitHub

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…
H. Pauwelyn
  • 11,346
  • 26
  • 71
  • 115
22
votes
2 answers

Two factor authentication with spring security oauth2

I'm looking for ideas how to implement two factor authentication (2FA) with spring security OAuth2. The requirement is that the user needs two factor authentication only for specific applications with sensitive information. Those webapps have their…
James
  • 10,392
  • 4
  • 46
  • 76
18
votes
3 answers

Apple developer Enroll with Two-Factor Authentication

This week I tried to enroll to the Apple developer program. Without that I can't publish an App to the store. When entered in the Enroll program https://developer.apple.com/programs/enroll It ask me to turn on the two-factor authentication. I did…
user3733255
  • 191
  • 1
  • 2
  • 4
16
votes
1 answer

Gitlab Account 2FA lost

I have lost my Phone and do not have the recovery code for my 2FA for GitLab. So I am locked out of my account. What are my options?
JanMer
  • 950
  • 1
  • 13
  • 23
14
votes
1 answer

Configure Jenkins For Github CI w/ 2FA

My Github account has two factor authorization (2fa) enabled. I want to integrate Jenkins with a few of my private repositories, but I cannot authorize them because I have 2fa enabled. Note this is a multibranch pipeline project. Any ideas how to…
Eric H.
  • 6,058
  • 6
  • 35
  • 59
13
votes
2 answers

Two-factor Authentication With fastlane

Im releasing my app to firebase distribution throw Fastlane while using CI machine. Im facing an issue with the 2FA. Im using Match to retrieve my certificates. This is what I have under "Appfile" app_identifier "com.example.example" # the bundle…
13
votes
2 answers

Change default ASP.NET Identity Two-factor remember Cookie Expire Time

I have been using ASP.NET Identity 2.2.1. Following is the code in post method of VerifyCode action. var result = await SignInManager.TwoFactorSignInAsync(model.Provider, model.Code, isPersistent: model.RememberMe, rememberBrowser:…
13
votes
3 answers

How to use ansible with two factor authentication?

I have enabled two factor authentication for ssh using duosecurity (using this playbook https://github.com/CoffeeAndCode/ansible-duo ). How can I use ansible to manage the server now. The SSH calls fail at gathering facts because of this. I want the…
1
2 3
27 28