Skip to content

Commit ebcd5ba

Browse files
author
Sameer Naik
authored
Merge pull request #2310 from brunoleon/fix_bitbucket
Set default value for BITBUCKET_URL
2 parents 6775dc4 + 8311b1e commit ebcd5ba

File tree

9 files changed

+11
-2
lines changed

9 files changed

+11
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@ Below is the complete list of available options that can be used to customize yo
10471047
| `OAUTH_GITLAB_APP_SECRET` | GitLab App Client secret. No defaults. |
10481048
| `OAUTH_BITBUCKET_API_KEY` | BitBucket App Client ID. No defaults. |
10491049
| `OAUTH_BITBUCKET_APP_SECRET` | BitBucket App Client secret. No defaults. |
1050+
| `OAUTH_BITBUCKET_URL` | Bitbucket URL. Defaults: https://bitbucket.org/ |
10501051
| `OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL` | The URL at which the SAML assertion should be received. When `GITLAB_HTTPS=true`, defaults to `https://${GITLAB_HOST}/users/auth/saml/callback` else defaults to `http://${GITLAB_HOST}/users/auth/saml/callback`. |
10511052
| `OAUTH_SAML_IDP_CERT_FINGERPRINT` | The SHA1 fingerprint of the certificate. No Defaults. |
10521053
| `OAUTH_SAML_IDP_SSO_TARGET_URL` | The URL to which the authentication request should be sent. No defaults. |

assets/runtime/config/gitlabhq/gitlab.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,8 @@ production: &base
928928
args: { scope: '{{OAUTH_GITHUB_SCOPE}}' } }
929929
- { name: 'bitbucket',
930930
app_id: '{{OAUTH_BITBUCKET_API_KEY}}',
931-
app_secret: '{{OAUTH_BITBUCKET_APP_SECRET}}' }
931+
app_secret: '{{OAUTH_BITBUCKET_APP_SECRET}}',
932+
url: '{{OAUTH_BITBUCKET_URL}}'}
932933
- { name: 'gitlab',
933934
label: 'GitLab.com',
934935
app_id: '{{OAUTH_GITLAB_API_KEY}}',

assets/runtime/env-defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ OAUTH_GITLAB_SCOPE=${OAUTH_GITLAB_SCOPE:-api}
403403
### BITBUCKET
404404
OAUTH_BITBUCKET_API_KEY=${OAUTH_BITBUCKET_API_KEY:-}
405405
OAUTH_BITBUCKET_APP_SECRET=${OAUTH_BITBUCKET_APP_SECRET:-}
406+
OAUTH_BITBUCKET_URL=${OAUTH_BITBUCKET_URL:-https://bitbucket.org/}
406407

407408
### CROWD
408409
OAUTH_CROWD_SERVER_URL=${OAUTH_CROWD_SERVER_URL:-}

assets/runtime/functions

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ gitlab_configure_oauth_bitbucket() {
553553
OAUTH_ENABLED=${OAUTH_ENABLED:-true}
554554
update_template ${GITLAB_CONFIG} \
555555
OAUTH_BITBUCKET_API_KEY \
556-
OAUTH_BITBUCKET_APP_SECRET
556+
OAUTH_BITBUCKET_APP_SECRET \
557+
OAUTH_BITBUCKET_URL
557558
else
558559
exec_as_git sed -i "/name: 'bitbucket'/,/{{OAUTH_BITBUCKET_APP_SECRET}}/d" ${GITLAB_CONFIG}
559560
fi

contrib/docker-swarm/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ services:
127127

128128
- OAUTH_BITBUCKET_API_KEY=
129129
- OAUTH_BITBUCKET_APP_SECRET=
130+
- OAUTH_BITBUCKET_URL=
130131

131132
- OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL=
132133
- OAUTH_SAML_IDP_CERT_FINGERPRINT=

docker-compose.swarm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ services:
189189

190190
- OAUTH_BITBUCKET_API_KEY=
191191
- OAUTH_BITBUCKET_APP_SECRET=
192+
- OAUTH_BITBUCKET_URL=
192193

193194
- OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL=
194195
- OAUTH_SAML_IDP_CERT_FINGERPRINT=

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ services:
129129

130130
- OAUTH_BITBUCKET_API_KEY=
131131
- OAUTH_BITBUCKET_APP_SECRET=
132+
- OAUTH_BITBUCKET_URL=
132133

133134
- OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL=
134135
- OAUTH_SAML_IDP_CERT_FINGERPRINT=

docs/docker-compose-keycloak.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ services:
123123

124124
- OAUTH_BITBUCKET_API_KEY=
125125
- OAUTH_BITBUCKET_APP_SECRET=
126+
- OAUTH_BITBUCKET_URL=
126127

127128
- OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL=
128129
- OAUTH_SAML_IDP_CERT_FINGERPRINT=

docs/s3_compatible_storage.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ services:
174174
- OAUTH_GITLAB_APP_SECRET=
175175
- OAUTH_BITBUCKET_API_KEY=
176176
- OAUTH_BITBUCKET_APP_SECRET=
177+
- OAUTH_BITBUCKET_URL=
177178
- OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL=
178179
- OAUTH_SAML_IDP_CERT_FINGERPRINT=
179180
- OAUTH_SAML_IDP_SSO_TARGET_URL=

0 commit comments

Comments
 (0)