Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Build status with personal access token when using 2fa authentication

mike
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2019

Our bitbucket server is configured with 2fa authentication.

I created a personal access token so i can use source tree.

Everything works fine.

But i cannot use the build status rest api to notify the bitbucket server

Culr request:

curl -H "Authorization: Bearer MyPAT" -H "Content-Type: application/json" -X POST https://MyServerAddress/rest/build-status/1.0/commits/f05a7bb4688305e84001a27de6d2c18a4e53e854 -d @buildResult.json

( i also tried with the -u option)

 

Response:

<html><head><title>Two Factor Authentication (2FA)</title><script>
window.WRM=window.WRM||{};window.WRM._unparsedData=window.WRM._unparsedData||{};window.WRM._unparsedErrors=window.WRM._unparsedErrors||{};
WRM._unparsedData["com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path.context-path"]="\u0022\u0022";
WRM._unparsedData["com.atlassian.bitbucket.server.bitbucket-webpack-INTERNAL:date-format-preference.data"]="\u0022RELATIVE\u0022";

 

Thank you

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events