Bitbucket U2F enrolment: "Something went wrong."

I'm unable to enrol a U2F device for 2SV, as described in https://confluence.atlassian.com/bitbucket/two-step-verification-777023203.html#Two-stepverification-Addsecuritykeys

When clicking the 'add security key' button, I get an error message "Something went wrong. Try adding your security key again.".

This is with a Yubikey 4C Nano, on Chrome 61.0.3163.100 on macOS 10.12.6. The key works fine on other U2F services, including https://demo.yubico.com/u2f.

 

5 answers

Can confirm this is working now. Ta.

Still not working for me...

0 vote

Hi Ben, thanks for letting us know. We're not aware of nay issue like the one you're describing yet. Can you show us what error do you get in the Developer Console in Chrome?

Regards,

Ana

POST https://bitbucket.org/!api/internal/account/myusername/two-step-verification/security-keys 400 ()

and the response:

{"type": "error", "error": {"message": "Bad request"}}

 

Network > Headers:

Request URL:https://bitbucket.org/!api/internal/account/myusername/two-step-verification/security-keys
Request Method:POST
Status Code:400
Remote Address:104.192.143.3:443
Referrer Policy:no-referrer-when-downgrade

Response Headers
access-control-allow-origin:*
access-control-expose-headers:Accept-Ranges, Content-Encoding, Content-Length, Content-Type, ETag, Last-Modified
content-language:en
content-length:54
content-type:application/json; charset=utf-8
date:Wed, 11 Oct 2017 01:57:59 GMT
etag:"23335ea4f2fef04b25834a2ca8df798e"
server:nginx
status:400
strict-transport-security:max-age=31536000; includeSubDomains; preload
vary:Authorization, Accept-Language, Cookie
x-frame-options:SAMEORIGIN
x-render-time:0.0347349643707
x-request-count:377
x-served-by:app-163
x-static-version:736471ea81ab
x-version:736471ea81ab

Request Headers
:authority:bitbucket.org
:method:POST
:path:/!api/internal/account/myusername/two-step-verification/security-keys
:scheme:https
accept:*/*
accept-encoding:gzip, deflate, br
accept-language:en-AU,en;q=0.8
content-length:1504
content-type:application/x-www-form-urlencoded; charset=UTF-8
cookie:...
origin:https://bitbucket.org
referer:https://bitbucket.org/account/user/myusername/two-step-verification/manage
user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
x-csrftoken:...
x-requested-with:XMLHttpRequest

Form Data
response:{"registrationData":"...","challenge":"...","version":"U2F_V2","appId":"https://bitbucket.org","clientData":"..."}
name:mykeyname

I have the same problem. I cannot enrol a U2F key at bitbucket.org.

 

I tried it with a yubikey4, and with a yubikey FIDO U2F. Both support U2f.

 

I valilated U2F with both keys on https://demo.yubico.com/u2f?tab=login.  work fine.

 

When I click "Add security key" in bitbucket.org, it gives  the error message "Something went wrong. Try adding your security key again.".

 

Looking in Chrome developer mode show a failed POST to https://bitbucket.org/!api/internal/account/harm_verhagen/two-step-verification/security-keys

 

I get a HTTP 400 with body

{"type": "error", "error": {"message": "Bad request"}}
0 vote

Hi everyone! Just wanted to keep you updated that we've identified the bug that is causing this issue and it will be fixed on the next release over the coming days.

Thanks for your support :)

Ana

Sae, issue. Look forward to a fix in the coming days. Thanks!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

111 views 0 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you