@@ -10,7 +10,7 @@ Coder integrates with the following service providers for authentication and
10
10
11
11
- GitHub (both GitHub.com and GitHub Enterprise)
12
12
- GitLab (both GitLab.com and self-hosted GitLab)
13
- - Bitbucket Server (_ not_ Bitbucket Cloud; the Cloud API <a
13
+ - Bitbucket Server and Data Center (_ not_ Bitbucket Cloud; the Cloud API <a
14
14
href="https://jira.atlassian.com/browse/BCLOUD-17762 " target="_ blank"
15
15
rel="noreferrer noopener">doesn't support</a > managing SSH keys for users via
16
16
OAuth)
@@ -85,14 +85,46 @@ ID**, and **Client Secret** to Coder. You can also provide an optional
85
85
86
86
When done, click ** Save** .
87
87
88
- ### Bitbucket Server
88
+ ### Bitbucket Server and Data Center
89
+
90
+ Determine your Bitbucket version, by looking at the footer of the
91
+ ** Administration** page, then select the corresponding Provider in Coder.
92
+
93
+ #### Version 7.20 or later
94
+
95
+ On your Bitbucket Server, go to ** Administration** > ** Applications** >
96
+ ** Application Links** and select _ Create link_ .
97
+
98
+ - Set ** Application type** to _ External application_
99
+ - Set ** Direction** to _ Incoming_
100
+
101
+ Click _ Continue_ .
102
+
103
+ - Enter a unique name for the link, e.g. "Coder"
104
+ - Set ** Redirect URL** to ` [your-coder-domain]/oauth/callback ` (e.g.
105
+ ` https://coder.domain.com/oauth/callback ` )
106
+ - In ** Application permissions** , under ** Account** , enable _ Write_ permission
107
+
108
+ Click _ Save_ and enter the generated ** Client ID** and ** Client Secret** .
109
+
110
+ #### Version 7.19 or earlier
89
111
90
112
On your Bitbucket Server, go to ** Administration** > ** Application Links** .
91
113
92
114
Create a new ** Application Link** , setting the ** Application URL** as
93
115
` [your-coder-domain] ` (e.g. ` https://coder.domain.com ` ). If you receive a ** No
94
116
response received** error, click ** Continue** to ignore it.
95
117
118
+ - If you are asked for a ** Shared secret** , enter _ Coder_
119
+ - If you are asked for ** Request Token URL** , ** Access Token URL** , or
120
+ ** Authorize URL** , enter ` [your-coder-domain] ` (e.g.
121
+ ` https://coder.domain.com ` )
122
+
123
+ (These values are for connections from Bitbucket to Coder and are unused in our
124
+ integration).
125
+
126
+ If shown, check ** Create incoming link** and click _ Continue_ .
127
+
96
128
For your newly created Application Link, provide the following values as your
97
129
** Incoming Authentication** properties:
98
130
0 commit comments