OpenRefactory Docs
HomePricingFAQ
  • Welcome
  • Table of contents
    • Introduction
    • Overview
    • Getting Started
      • INSTALLING ICR FOR PYTHON
      • MANAGING YOUR SERVICE
      • ACCESSING YOUR SOURCE CODE
    • USING THE NAVIGATOR
    • USING THE ANALYSIS ENGINE
    • REVIEWING YOUR RESULTS
      • REVIEWER SUMMARY AND FILTERS
      • FILTER BY DIRECTORY PANE
      • FILTER BY CATEGORY PANE
      • HANDLING RESULTS
    • WHEN YOU ARE COMPLETE
    • APPENDIX A – LIST OF SUPPORTED FIXERS
    • APPENDIX B – GITLAB OAUTH SETUP
    • APPENDIX C – BITBUCKET OAUTH SETUP
    • APPENDIX D – EXAMPLE SUMMARY REPORT
Powered by GitBook
On this page

Was this helpful?

  1. Table of contents

APPENDIX B – GITLAB OAUTH SETUP

PreviousAPPENDIX A – LIST OF SUPPORTED FIXERSNextAPPENDIX C – BITBUCKET OAUTH SETUP

Last updated 2 years ago

Was this helpful?

li {list-style-type: none;}

Appendix B – GitLab OAuth Setup

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.