Credentials Error with OAuth Consumer Integration

John Saputo
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!
March 27, 2024

I am trying to integrate a Bit Bucket Cloud repo to platform.sh

I am following the instructions here - https://docs.platform.sh/integrations/source/bitbucket.html#bitbucket-cloud

The first step is to create an OAuth consumer. I created one with these settings -

 

bitbucketsettings.jpg

The instructions then say to run this command -

 

platform integration:add \  --project PROJECT_ID \  --type bitbucket \  --repository OWNER/REPOSITORY \  --key CONSUMER_KEY \  --secret CONSUMER_SECRET

I am using "<repo_details_edioted_for_privacy>" as my repository. I am doing this because it is in the URL of my repo. Also if I run git command -v it returns 

<repo_details_edioted_for_privacy>

 

My command looks like this -

 

platform integration:add \  --project platformprojecthere \  --type bitbucket \  --repository <repo_details_edioted_for_privacy> \  --key keyhere \  --secret secrethere

With the "platformprojecthere" replaced with the correct platform sh project ID

"keyhere" with the Key from OAuth consumers page

"secrethere" with the Secret from the OAuth consumers 

I get this error in terminal -

Invalid Bitbucket credentials
Ensure that the OAuth consumer key and secret are valid.
Additionally, ensure that the OAuth consumer has a callback URL set (even just to http://localhost).

If I use the GUI I get this error -

We have trouble accessing the remote repository at Bitbucket: unknown exception

 

Is there a something else I need to set up with the Bit Bucket repo?

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2024

Hi John and welcome to the community!

If you have confirmed that the OAuth consumer key and secret are correct, I would suggest reaching out to platform.sh support team. This integration is not built by Atlassian and we cannot provide much assistance.

The following page has info on how to get support:

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events