Skip to content

Allow GitHub imports via token even if OAuth2 provider not configured

Stan Hu requested to merge sh-fix-github-import-without-oauth2-config into master

Previously, the GitHub importer would only work if the site configured an OAuth2 provider were configured. Users attempting to import via a GitHub personal access token would see an Error 500 due to a failed redirection. We fix this by only doing the redirection if the provider has been configured and allowing users to see the new import page.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/38524

Merge request reports