GitLab.com
After subscribing to the Git Integration for GitLab, set up the integration between GitLab.com and a SnapLogic Org, follow these steps:
- Create a GitLab Group application.
- Configure your SnapLogic Org.
Create GitLab application
To enable GitLab to track SnapLogic assets, a GitLab administrator must create an application that configures connectivity:
Important: The SnapLogic Callback URL is the same as the GitLab Redirect URI.
- Log into GitLab.
- Navigate to your Group.
- Select Settings.
- Click Applications.
- Click Add a new application.
- Enter a name.
- For Redirect URI, enter,
{Snaplogic_URI}/api/1/rest/asset/app/oauthcallback
. For example:https://control-plane-name.snaplogic.com/api/1/rest/asset/app/oauthcallback
Wherecontrol-plane-name
is the control plane you are using. For example,- elastic
- uat
- emea
Important: Redirect URI is the same as the Callback URL that you specify to integrate Git (GitLab) with your SnapLogic environment/org. - Leave the Confidential box checked.
- For Scopes select the following:
- api
- read_api
- read_user
- write_repository
- Click Save application.
- Click the application to view it and copy the secret to use when configuring your SnapLogic Org.
Configure the SnapLogic Org settings
Finally, a SnapLogic Org admin must configure the Git Integration:
- Open the IIP Manager.
- From the left panel select Settings.
- Scroll down to Git Integration and click Configure Git.
- From the Git Integration Type dropdown list, select GitLab cloud.
The configuration dialog opens:
- Enter the following values, some are pre-populated:
- App ID: The Application ID from the GitLab application.
- Client Secret: Paste the Secret copied from the GitLab application.
- Gitlab URL:
https://gitlab.com
- Authorized scopes:
api
read_api
read_user
write_repository
- Callback URL: The Redirect URI from
the GitLab application,
https://control-plane-name.snaplogic.com/api/1/rest/asset/app/oauthcallback
.Where control-plane-name is the control plane you are using. For example,- elastic
- uat
- emea
Important: This Callback URL is the same as the Redirect URI in the context of GitLab.
- Click Save.
This completes Org setup. Each user in the Org must Authorize SnapLogic to connect to GitLab.