Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 6b7b6e1

Browse files
committed
Add gitlab.com integration for staging
1 parent 9cdfe93 commit 6b7b6e1

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
11
# Gitlab Integration
2+
3+
## Gitlab Cloud (gitlab.com)
4+
5+
### Gitlab / OAuth
6+
7+
The Gitlab.com integration for CodeStream implements the standard OAuth
8+
procedure which requires a dedicated OAuth application on Gitlib.com with the
9+
appropriate settings.
10+
11+
1. Login to Gitlab.com
12+
13+
1. `Settings > Applications`
14+
1. Set the **Redirect URL (callback URL)** to for your API's URL (similar to
15+
`https://api.codestream.us/no-auth/provider-token/gitlab`)
16+
17+
1. Select the Confidential, Expire AccessTokens and api Scopes checkboxes
18+
(all three).
19+
20+
1. Create the application. Take note of the **Application ID** and
21+
**Secret**.
22+
23+
1. Add the credentials to the CodeStream server's config file in the
24+
`intergrations` section.
25+
```
26+
{
27+
"integrations": {
28+
"gitlab": {
29+
"cloud": {
30+
"appClientId": "***************************",
31+
"appClientSecret": "*************************",
32+
"disabled": false
33+
}
34+
}
35+
}
36+
}
37+
```

shared/codestream_configs/profiles/cloud.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@
205205
"prod": {
206206
"_loadSecretsFile": "gitlab/prod.cfg"
207207
},
208-
"stg": {}
208+
"stg": {
209+
"_loadSecretsFile": "gitlab/stg.cfg"
210+
}
209211
}
210212
},
211213
"jira": {

0 commit comments

Comments
 (0)