Skip to content

WIP: Use OmniAuth to collect Github access tokens.

When a user logs in with Github, save their access token (which OmniAuth makes available). This allows us to save a step when importing projects from Github. When the access token is missing or there is an error using the token, redirect the user through OmniAuth.

Requires configuration for the Github provider for OmniAuth. If you add the repo scope here, importing projects is seamless when the user logs in via Github:

https://gitlab.com/ericidema/gitlab-ce/blob/master/config/gitlab.yml.example#L355

However, the repo scope is not required and will be requested when attempting to import a project.

Merge request reports