cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Accessing BITBUCKET from snaplogic

Harriesh
New Contributor III

Can someone help me for accessing the Bitbucket code from the snaplogic ?

How to create a public key in the Bitbucket and how to use the same for creating account in the snaplogic ?

1 ACCEPTED SOLUTION

Harriesh
New Contributor III

Hi @Surendar

The Access tokens was not available for everyone in the organisation to create for the REST.

There were only Access tokens available for SSH which will not work for REST API.

So We created a service account and given the account the BitBucket access and used the it as Basic Authentication for accessing the bitbucket files.

Thanks for the links ๐Ÿ™‚

View solution in original post

3 REPLIES 3

Surendar
Contributor

Please follow below steps:

  • Try to create the access token in BITBUCKET for your repositories.
  • And then use BITBUCKET API in-order to access the repositories.
  • In SnapLogic create REST with Dynamic OAuth2 account/OAuth account and then use the access token.
  • Then using REST Snap you can able to access the BITBUCKET repositories with the help of GET API call.

Useful links:

https://api.bitbucket.org/2.0/repositories

https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html

Harriesh
New Contributor III

Hi @Surendar

The Access tokens was not available for everyone in the organisation to create for the REST.

There were only Access tokens available for SSH which will not work for REST API.

So We created a service account and given the account the BitBucket access and used the it as Basic Authentication for accessing the bitbucket files.

Thanks for the links ๐Ÿ™‚

sanjaynayak
New Contributor III

@Harriesh/Anyone,

bitbucket in this case was bitbucket server or bitbucket cloud, bitbucket cloud is working awesome, even if bitbucket server connection is also fine but rest put method is not able to submit the body, some boundary value calculation along with content type is not working.
Any one implemented cases like, rest put for bitbucket server. It is working fine in post man. Issue seems like to be post man is creating boundary value for multipart/form-data by default but SnapLogic is not able to generate boundary value.