Integrate with Platform.sh
Asked by Logan Irish:

My team is trying to access the codebase which requires an integration with Platform.sh. We moved the codebase into a new workspace for our new agency to take over but there seems to be an error every time they implement the oAuth credentials into Platform.sh.

This screenshot is from Platform.sh integration screen:

![2023-04-24 18_30_51-Settings _ Master _ Recorded Future - App _ Platform.sh.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/253663i6CA330C6E1C8C312/image-size/large?v=v2&px=999 "2023-04-24 18_30_51-Settings _ Master _ Recorded Future - App _ Platform.sh.jpg")

Any assistance on this would be appreciated, and much more helpful if we could speak to a tech support individual personally.


Answers:
author: Patrik S
body: Hello [@Logan Irish](/t5/user/viewprofilepage/user-id/5179162) ,

Welcome to the Community!

From the screenshot you have shared, it seems like Platform.sh expects you to provide the secret and key from an OAuth consumer created on your Bitbucket Workspace.

You can create an OAuth consumer by following the below instructions :
> **1.** Access the workspace where you have your repositories (select your avatar in the top right \> All workspaces \> open the desired workspace)
>
> **2.** Click on the gear icon in the top right and select **Workspace Settings**
>
> **3.** On the sidebar, under **Apps and features** , select **OAuth consumers**.
>
> **4.** Click the **Add consumer** button.
>
> You will need to provide the following information:
>
> **Name:** The display name for your consumer. This must be unique within your account. This is required.  
> **Description:** An optional description of what your consumer does.  
> **Callback URL:** Required for OAuth 2.0 consumers, this is the URL users will be redirected after the authorization. If you don't have any you can use *<https://localhost.com>* **URL:**An optional URL where users can learn more about your application.
>
> **5.** Select the permissions for this Oauth consumer. This very depends on the application you are integrating. If the application will just use the OAuth credentials to clone the repository, then ***repository:read*** should be sufficient. If you are not sure what scopes Plataform.sh needs, you can try creating the Oauth consumer with all the permissions checked and later edit the Oauth consumer with narrower scopes.
>
> **6.** Click **Save** . The system generates a **key** and a **secret** for you.
>
> **7.** Toggle the consumer name to see the generated **Key** and **Secret** value for your consumer.
>
> **8.** Provide the value of the **key** and **secret** in the Plataform.sh configuration, on the fields **App credential key** and **App credentials secret**, respectively.

You can try following the instruction above and let us know how it goes. Also, if you are interested in learning more about OAuth in Bitbucket cloud, I would recommend also checking our [Use Oauth on Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/) documentation.

Thank you, [@Logan Irish](/t5/user/viewprofilepage/user-id/5179162) !  
Patrik S


Tags: bitbucket-cloud

cloud