Problem/Motivation

I'm at DrupalCon Portland2024 and I'm seeing this problem happening with (almost) all new contributors. Launching DrupalPod fails silently when trying to authenticate with git.DrupalCode.org

Steps to reproduce

  1. Visit https://gitpod.io/user/integrations
  2. Locate the line that says "GitLab (git.drupalcode.org)"
  3. Click on the three vertical dots to its right and select "Disconnect"
  4. Go to https://git.drupalcode.org and ensure you are signed in
  5. Navigate to https://git.drupalcode.org/-/users/terms
  6. Click on "Decline and sign out"
  7. You will need to log into GitPod (it might not matter which option you choose, I've seen most people log in with GitHub)
  8. You'll see this warning message that you need to authenticate with git.DrupalCode.org
  9. Then you'll see a pop-up where you agree to the data being shared
  10. When you click "Authorize" the pop-up will close, but nothing else will happen, the warning message from the original screenshot is still there. It's failed silently.
  11. This problem seems to occur when any of the following conditions exist:
    * The user is not confirmed.
    * The user has never visited https://git.drupalcode.org and thus has never accepted the TOS there.
    * The user's account has been marked as a spammer (incorrectly?) and a higher-level d.o admin needs to unmark them.

    Manual Resolution

    Until it gets officially resolved, here are the step to resolve it manually:
    1. Go to Drupal's user page - https://www.drupal.org/user
    2. Click on DrupalCode Access
    3. Choose any of the links

    Manage GitLab settings on git.drupalcode.org:
    
    Emails
    Notifications
    SSH Keys
    GPG Keys
    Preferences
    Access Tokens

    You will get into the terms page, and it will log you in into drupalcode
    4. Scroll down, and click on "Accept Terms"

    Proposed resolution

    ???
    Maybe show an error message describing the above 3 scenarios.

    Remaining tasks

    ???

    API changes

    ???

    Data model changes

    ???

Comments

dalin created an issue. See original summary.

rfay’s picture

Thanks for opening this issue @dalin - All of us helped people who had this class of problem at the mentored contribution at Drupalcon Portland 2024.

rfay’s picture

@shaal this is a key problem when doing mentoring. Any thoughts about how to proceed with this?

dalin’s picture

Issue summary: View changes
rfay’s picture

Thanks to @dalin for noting this and pursuing it. It does seem that this isn't a Drupalpod issue, or at least one that can be resolved in Drupalpod, so we need to be explicit about this for both new gitlab users and new Drupal.org users during the contribution workshops. @dalin has provided the exact steps to resolve.

shaal’s picture

Issue summary: View changes

The core of this issue appears to be related to Drupal users who have not accepted the Drupal Terms of Service (TOS).
I've found a way to replicate the problem that new users might encounter:

For users who want to quickly resolve this issue, follow these steps: