This guide, will show how to enable Amber to index/access the data on GitLab platform.

  1. As Admin user, click Admin button next to the user profile icon. This will open admin interface.

  2. On the sidebar to the left, proceed to Settings → General. In the list that appears, go to Account and limit.

  3. There find User OAuth applications and OAuth authorizations options. This will enable the creation of OAuth application and the possibility to login with OAuth.

Now that OAuth applications are enabled, we need to create one.

  1. As Admin user, click on user profile icon on top right, then go to left sidebar Preferences → Applications.

  2. Click Add new application.

  3. On the form:

Now we are able to login to GitLab instance with OAuth.

Next step is to generate a PAT (Personal Access Token). This token will be used to index platform data.

This token should be generated by a user account that has Developer level access (at least Reporter) in each project, and is member of respective groups.
(Or admin account, since admin accounts have access everywhere)
With this account, click on user profile icon on top right, Preferences, then go to left sidebar Personal access tokens.

  1. Click on Add new token.

  2. On the form:

    • Give this token a meaningful name

    • Give this token a description (optional)

    • Expiration date is one month from the date of creation. Update it to at least one year.

    • Scopes: mark read_api

      This gives the access token only read rights.

    • Click Generate token

    • Careful! At this moment, Token will be displayed at the top as password field. This will be the only time to copy it and send it to the Amber team, otherwise you have to create a new one.

Share Credentials

These data should be send to amber team:

  1. Base URI of gitlab host

  2. OAuth app client_id

  3. OAuth app client_secret

  4. PAT (Personal Access Token)

At this point, everything is configured and ready to be processed by Amber!