Book Image

GitLab Cookbook

By : Jeroen van Baarsen
Book Image

GitLab Cookbook

By: Jeroen van Baarsen

Overview of this book

Table of Contents (16 chapters)
GitLab Cookbook
About the Author
About the Reviewers

Setting up GitHub as an OmniAuth provider

When your company is switching to GitLab, chances are that you're using GitHub at this point. So, all of the employees have a GitHub account and might even use that GitHub account to do their own open source work. It would be great if you could make the switch to GitLab without forcing your employees to create a new account. In this recipe, we will take a look at how you can set up GitLab so that your people can authenticate themselves with their GitHub account.

How to do it…

With the following steps, we will register a GitLab app on GitHub and link it to our GitLab server:

  1. Log in to your GitHub account.

  2. Go to your user settings.

  3. Click on Applications.

  4. Click on Register new application.

  5. You now see a form that needs to be filled in; let's go over the following fields:

    • Application name: This is a new application name that your users will recognize and trust. In my example, I'll use GitLab Example app.

    • Homepage URL: This is the URL to your GitLab app. In...