Skip to content

GitLab connects with OAuth 2.0 through Truto's GitLab app or your own, or with a personal access token.

Install the GitLab integration

Install GitLab from Available integrations in each environment you connect accounts from.

Use your own GitLab OAuth app

Truto connects GitLab accounts through its own OAuth app, so this step is optional. To show your own app on the consent screen instead:

  1. Create an OAuth app in GitLab and add https://api.truto.one/connect/gitlab/callback as its redirect URL. If you use a redirect URL on your own domain, add that URL instead.
  2. Enter the app's Client ID and Client Secret on the installed GitLab integration. See Overriding OAuth credentials.

By default, Truto asks GitLab for these scopes. The Connect UI lists them under Permissions required, and you can change them when you override the OAuth credentials.

  • read_api
  • read_user
  • read_repository
  • read_registry
  • openid
  • email
  • profile
  • api

Enable the same scopes on your app. If your app allows fewer, change the list under Use your own OAuth settings → Scopes on the installed integration's Configuration tab to match.

Connect a GitLab account

  1. In Integrated Accounts, click Connect Account. Click Connect Account
  2. Enter a Tenant ID (your customer's ID; Truto creates the tenant if it is new), or pick one under Existing tenant (optional). Check the Environment and the Region (where Truto places the account; Western North America by default). To open the link straight on GitLab, pick it under Advanced settings → Integration (optional). Click Get connection link. Get connection link
  3. Click the open-in-new-tab button, or click Copy and send the link to your customer so they connect their own GitLab account. The link works for 7 days, until an account is connected with it. Share connection link
  4. Click Get Started if it shows, then select GitLab. Select GitLab
  5. Choose how to connect:
    • OAuth 2.0: log in to your GitLab account and allow access to Truto.
    • API Key: enter a GitLab personal access token in Personal access tokens. Create one under your avatar → Edit profile → Access tokens. Click Connect.
  6. Close the tab when you see Connection successful. The new account appears under Integrated Accounts. Click its Account ID to see its details and make API calls.