This section explain how to integrate iftrue into self managed gitlab instances. If you are looking for the cloud Gitlab, check Gitlab(Cloud) page from the left.
Estimated time to integrate: 4 minutes
- Inbound IP addresses
- Outbound IP address
- Callback url for oAuth APP
if you just signed up you will see this screen.
Integrate GIT Provider Screen
We need to create Gitlab application to integrate iftrue. To access this page,
- 1.Click Create Gitlab SSO Bridge
- 2.Navigate to your Gitlab group settings. (Groups -> Select Group -> Settings)
Gitlab Group Application Settings
- 3.Set the callback URL and requested permissions.
Copy paste the callback URL
We do not require repository read or write permissions.
Gitlab Create Application
- 4.Copy and paste Application id and secret to iftrue
Gitlab Application Secrets
Copy those newly created application id and secret to iftrue onboarding page shown below.
- 5.Enter your host url
Insert your gitlab instances URL to the host URL section. This will validate your developers with oAuth.
- 6.Create Integration once done
Once you've created the application and the details, click create integration. This integration will be used by your own landing page in iftrue, which is,
When your team wants to signin you will use this address and your team will be able to signin with their Gitlab account by using oAuth 2.0.
- 7.Create Access Token to Fetch Data
We need to create access token to fetch data from your gitlab instance. In order to that,
navigate to groups settings and than click
Gitlab Group Access Token Menu
Set the token properties as below,
Gitlab Access Token Settings
Copy the access token and paste it to iftrue
Iftrue Gitlab Access Token Settings
Hit save and you are ready to go