Skip to content

Commit d61ee6f

Browse files
authored
Docs for Bitbucket 7.20+ (coder#1242)
* Docs for Bitbucket 7.20+ Signed-off-by: Spike Curtis <spike@coder.com> * Update 7.19 & earlier docs to match newer UI Signed-off-by: Spike Curtis <spike@coder.com> * List uplevel bitbucket version first Signed-off-by: Spike Curtis <spike@coder.com> --------- Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 8baa73a commit d61ee6f

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

admin/git.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Coder integrates with the following service providers for authentication and
1010

1111
- GitHub (both GitHub.com and GitHub Enterprise)
1212
- 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
1414
href="https://jira.atlassian.com/browse/BCLOUD-17762" target="_blank"
1515
rel="noreferrer noopener">doesn't support</a> managing SSH keys for users via
1616
OAuth)
@@ -85,14 +85,46 @@ ID**, and **Client Secret** to Coder. You can also provide an optional
8585

8686
When done, click **Save**.
8787

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
89111

90112
On your Bitbucket Server, go to **Administration** > **Application Links**.
91113

92114
Create a new **Application Link**, setting the **Application URL** as
93115
`[your-coder-domain]` (e.g. `https://coder.domain.com`). If you receive a **No
94116
response received** error, click **Continue** to ignore it.
95117

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+
96128
For your newly created Application Link, provide the following values as your
97129
**Incoming Authentication** properties:
98130

0 commit comments

Comments
 (0)