Skip to content

Commit 656f690

Browse files
Update Bitbucket Data Center Self-Hosted docs
1 parent ff97832 commit 656f690

8 files changed

+36
-12
lines changed
Binary file not shown.
176 KB
Loading
203 KB
Loading
Binary file not shown.
211 KB
Loading
176 KB
Loading
29.3 KB
Loading

docs/self-hosted/bitbucket-server-integration-setup.md

Lines changed: 36 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
11
# Bitbucket Data Center / Server Integration Setup
22
## Private Packagist Self-Hosted
33

4-
This guide explains how to setup an OAuth integration for Private Packagist Self-Hosted with Bitbucket Data Center / Server integration.
5-
If you are using our cloud product at packagist.com, [use this guide](../cloud/bitbucket-server-integration-setup.md).
4+
<div class="row column">
5+
<div class="callout success">
6+
<p>This guide explains how to set up an OAuth integration for Private Packagist Self-Hosted with Bitbucket Data Center / Server.</p>
7+
<p>If you are using our Cloud product at packagist.com, <a href="/docs/cloud/bitbucket-server-integration-setup.md">use this guide</a>.</p>
8+
</div>
9+
</div>
610

711
<div class="row column">
812
<div class="callout warning">
913
<p>Note: Application Links using OAuth 2 are available since Bitbucket Data Center / Server v7.21. If you are using an older Bitbucket Data Center / Server version then consult the <a href="/docs/self-hosted/bitbucket-server-oauth1-integration-setup.md">Bitbucket Data Center / Server OAuth 1 setup guide</a>.</p>
1014
</div>
1115
</div>
1216

13-
## Initial Setup
14-
Hit the “Add integration“ button on the admin page to get to the form below.
17+
To allow your users to authenticate to Private Packagist Self-Hosted with their Bitbucket Data Center / Server account, you'll
18+
first need to create an integration in Private Packagist. This document walks you through the required steps.
19+
20+
## Open the Add Integration form
21+
Go to the Admin section and hit the “Add Integration“ button to open the form to create your integration. If you've just
22+
installed Private Packagist Self-Hosted and it is still running in Setup Mode, you do not need to log in. If the application
23+
is no longer in Setup mode, you will have to log in with an admin account first.
24+
25+
![Add Integration](/Resources/public/img/docs/self-hosted/08-integration-create.png)
26+
1527
To setup a Bitbucket Data Center / Server integration with Private Packagist, start by selecting "Bitbucket Data Center / Server"
16-
as the platform, enter the URL of your on-premise Bitbucket Data Center / Server into the base URL field and select OAuth 2 as the OAuth version as seen in the example below.
28+
as the platform, enter the URL of your on-premise Bitbucket Data Center / Server into the base URL field and select OAuth 2
29+
as the OAuth version as seen in the example below. A link to set up the OAuth application on your Bitbucket instance will automatically be displayed.
1730

18-
![Packagist Setup](/Resources/public/img/docs/integration-setup/bitbucket-server-01-packagist-setup.png)
31+
![Packagist Setup](/Resources/public/img/docs/integration-setup/self-hosted/bitbucket-server-01-packagist-setup.png)
1932

20-
Copy the content from the "Callback URL / Redirect URL" field and follow the link to set up an Application Link.
33+
## Create Application link
34+
Do not submit the integration form yet, but copy the content from the "Callback
35+
URL / Redirect URL" and follow the setup link to your Bitbucket Data Center / Server instance. The fields
36+
Client ID and Client Secret remain empty for now.
2137

22-
## Configure Application link
23-
Click on the link to setup an Application Link on Bitbucket Data Center / Server and select "External application" as type and "Incoming" as direction.
38+
In Bitbucket, click on the "Create link" button and select "External application" as type and "Incoming" as direction.
2439

2540
![Bitbucket Data Center / Server Create Application Link](/Resources/public/img/docs/integration-setup/bitbucket-server-02-bitbucket-create-application-link.png)
2641

@@ -29,12 +44,21 @@ Select Repositories "Read" as application permission and save the form.
2944

3045
![Bitbucket Data Center / Server Configure Application Link](/Resources/public/img/docs/integration-setup/bitbucket-server-03-bitbucket-configure-application-link.png)
3146

47+
Once the form is saved, Bitbucket Data Center / Server will show you the Client ID and secret.
48+
3249
## Finish the Setup
50+
Copy and paste the "Client ID" and "Client Secret" values back into the Private
51+
Packagist integration form and submit the form with the "Create Integration"
52+
button.
3353

34-
Once the form is saved, Bitbucket Data Center / Server will show you the Client ID and secret.
35-
Copy them over to Private Packagist and save the integration.
54+
![Packagist Finalize](/Resources/public/img/docs/integration-setup/self-hosted/bitbucket-server-04-packagist-finalize.png)
55+
56+
The Bitbucket integration will be created and you will be redirected to the admin page.
57+
58+
The new integration will be shown in the list of available integrations, and your users can
59+
now log in to your Private Packagist Self-Hosted installation using their Bitbucket Data Center / Server account.
3660

37-
![Packagist Finalize](/Resources/public/img/docs/integration-setup/bitbucket-server-04-packagist-finalize.png)
61+
![Available integrations](/Resources/public/img/docs/integration-setup/self-hosted/bitbucket-server-05-integrations-overview.png)
3862

3963
## Configure Bitbucket Server plugins
4064

0 commit comments

Comments
 (0)