APPENDIX B – GITLAB OAUTH SETUP
Last updated
Last updated
li {list-style-type: none;}
Section 3.3 Accessing Your Source Code, describes how to create the OAuth credentials needed to access GitHub. This appendix adds the additional details if you are planning on using GitLab to access your source code.
GitLab also uses the OAuth standard to allow you to tell GitLab that your iCR for Python server is allowed to redirect login credentials for GitLab to authenticate. To set this up, login into GitLab and go to your user menu at the top right of the GitLab menu bar.
From there, select “Preferences” from the pull-down menu. The “Preferences” menu offers a number of configurable options.
Click on “Applications” to go to the Applications authorization page.
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-Python” 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 3002 and the callback text. Using the example IP address from Section 3.3 enter: http://3.237.77.219:3002/login/gitlab/return
You need to select both the “Confidential” and the “api” options. As was noted for GitHub, 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.