Skip to content

Update OAuth scopes for GitHub import

Jessie Young requested to merge jy-import-oauth-scope into master

What does this MR do and why?

Screenshots or screen recordings

This is what the page looks like before a user has authenticated; clicking the blue button takes them through an OAuth flow where the scopes in our configuration are requested:

Screenshot_2023-11-30_at_11.22.18_AM

the oauth approval screen looks like this:

Screenshot_2023-11-30_at_10.20.33_AM

after authenticating, they are shown the import options:

Screenshot_2023-11-30_at_11.23.01_AM

How to set up and validate locally

  • Configure GitHub OAuth locally https://docs.gitlab.com/ee/integration/github.html
  • Visit GDK_ROOT/projects/new#import_project and select "GitHub"
  • Click the blue button to authenticate with GitHub OAuth
  • Confirm that scopes requested are repo and read:org

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jessie Young

Merge request reports