Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

2FA error: "you entered an incorrect verification code"

Hello,

it's been a month or 2 that the 2FA hasn't been working properly on my bitbucket account. I have been using Authy for a long time but all of a sudden I keep getting the following error:

"you entered an incorrect verification code"

 

I now login by entering the emergency recovery key but it's getting cumbersome, I can't keep up like that forever, saving a new key each and every time.

 

I read a few posts on the community like this:

Bitbucket Two step verification code rejected

but none worked for me.

I followed the steps: I removed the 2FA and reconfigured it several time, I tried other 2FA apps such as GoogleAuthenticator, Authenticator, 2FAS Auth... But there's no way to avoid the "incorrect verification code" error.

 

I read a few posts saying it's a time issue. So I figured out it the error could have been triggered by daylight saving time. So I tried returning to standard time on my phone, but it didn't work. I also tried quite a few different time zones but none worked.

 

However there's a weird exception: when I login with the emergency key, there's a new prompt which asks for a two steps verification or for recovery codes. I type the Authy's code, and guess what, it works on that occasion. How can it be? It didn't work a while before...

 

Can anybody help me? What can I do?

Thank you in advance.

 

 

1 answer

0 votes

Hi @d_steelhead and welcome to the community.

Does this concern the Bitbucket account that has the same email as your community account?

Checking this account in our system, I can see that it has 2FA enabled on both the Bitbucket and the Atlassian account, which I believe is the culprit.

 

Please allow me to give some context first:

Bitbucket uses Atlassian accounts (the ones for https://id.atlassian.com/) for authentication.
At the moment, it is possible to set up 2FA both for a Bitbucket account and also for an Atlassian account.

If you do that, you'll get asked for a 2FA code twice when logging in to Bitbucket, once for the Atlassian account and once for the Bitbucket account.
There should be two separate entries/accounts in the authenticator app, one for the Atlassian account and another one for the Bitbucket account.

When logging in to Bitbucket, you first get asked for a 2FA code for the Atlassian account, which should be generated by the entry/account in the authenticator app that is for the Atlassian account.
After this step is completed successfully, you'll get asked for a 2FA code for the Bitbucket account, which should be generated by the entry/account in the authenticator app that is for the Bitbucket account.

 

Likely issue in your case:

Based on the following description

However there's a weird exception: when I login with the emergency key, there's a new prompt which asks for a two steps verification or for recovery codes. I type the Authy's code, and guess what, it works on that occasion. How can it be? It didn't work a while before...

It sounds like the entry/account you have in your authenticator app is for Bitbucket. The codes generated by the Bitbucket entry will only work for Bitbucket 2FA and not for Atlassian account 2FA.

So, when you try to log in, you get past the Atlassian account 2FA with the emergency key.
Then, you are presented with Bitbucket 2FA, and the 2FA code works as intended.

 

Possible solution:

If you don't have a second entry/account in your authenticator app for Atlassian account 2FA, you can disable 2FA for the Atlassian account.
If you want, you can then set it up again, or only keep 2FA on the Bitbucket account.

The following page has instructions on how to disable 2FA on the Atlassian account:

 

Please feel free to let me know if this works for you and if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

271 views 2 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you