@@ -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
8686When 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
90112On your Bitbucket Server, go to ** Administration** > ** Application Links** .
91113
92114Create a new ** Application Link** , setting the ** Application URL** as
93115` [your-coder-domain] ` (e.g. ` https://coder.domain.com ` ). If you receive a ** No
94116response 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+
96128For your newly created Application Link, provide the following values as your
97129** Incoming Authentication** properties:
98130
0 commit comments