Studio Git credential to Bitbucket

David Hubbard
Tera Guru

We are storing our ServiceNow Application in Bitbucket (Git).

 

Is it possible to integrate the Git support in Studio with Bitbucket "Repository Access Token" - that is an HTTP request with "Authorization: Bearer XXXXX"?  

 

From what I can see the options on "Credentials" (below) don't seem to support this style of Authentication.

 

sn_credentials.PNG

5 REPLIES 5

David Hubbard
Tera Guru

I have got round this by actually using a "User App Password" - which is similar, revocable, mechanism for storing in Apps (it uses standard: "Authorization: User:Password" rather than "Bearer").   I guess my question still stands, but less pressing for me.

Tobi3
Tera Contributor

@David Hubbard 
Have you found any solution for using HTTP access tokens?
Unfortunately we cannot use user app passwords since that doesn't exist on our on-prem Bitbucket.

Anders Godstad
Tera Expert

Hello, @David Hubbard and @Tobi3.

 

Did you ever find a solution for this? 
I am unable to connect using the "Repository Access Token". 
I just managed to connect using the "User App Password", but would like to use "Repository Access Token" if possible.

Nam11
Tera Contributor

@David Hubbard I tried to connect to bitbucket using "App Password" generated from bitbucket. Set up Basic Auth Credential on SNOW side with blank "User name" and the app password as the "Password". Connection fails with error below. You were able to get it to work. Any pointers?

 

Anything you can provide would be appreciated. Thanks.

 

Nam11_0-1688163473049.pngNam11_1-1688163603892.png