You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/self-hosted/bitbucket-server-integration-setup.md
+36-12Lines changed: 36 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,41 @@
1
1
# Bitbucket Data Center / Server Integration Setup
2
2
## Private Packagist Self-Hosted
3
3
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
+
<divclass="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>
6
10
7
11
<divclass="row column">
8
12
<div class="callout warning">
9
13
<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>
10
14
</div>
11
15
</div>
12
16
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.
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.
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.
21
37
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.
24
39
25
40

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

31
46
47
+
Once the form is saved, Bitbucket Data Center / Server will show you the Client ID and secret.
48
+
32
49
## 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.
33
53
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.
0 commit comments