Authenticating GitLab Access with a Cloud-Based VCS Repository
Last updated
Last updated
To gain access to your GitLab cloud-based projects, you need to authorize iCR to access them using OAuth. Here is how that is done.
To set this up, login into GitLab and go to your user menu at the top right of the GitLab menu bar.
The Settings menu offers a number of configurable options.
The “Applications” page is where you tell GitLab to allow your Server to allow logins redirected from the Server.
For the application “Name” use whatever you like. “iCR-for-Java" has been used in this example. You also must enter the redirect URL to the server. GitLab’s OAuth uses that to verify the authorization handshake. Enter the URL as your server’s IP address with port 3001 and the callback text. Using the example IP address from Authenticating GitHub Access with a Cloud-Based VCS Repository Service enter:
https://3.237.77.219:3001/login/gitlab/return
You need to select both the Confidential and the api options. As was noted in Authenticating GitHub Access with a Cloud-Based VCS Repository Service, once you have completed this step, you will need to copy the Application ID and the Secret. From here, the process is the same as outlined for GitHub Cloud.