I noticed an error was produced when checking for coding standard violations:

phpcs --standard=DrupalPractice .

FILE: /var/www/html/drupal2/social_auth_github/src/GitHubAuthManager.php
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 33 | ERROR | The $_GET super global must not be accessed directly; inject the request.stack
    |       | service and use $stack->getCurrentRequest()->query->get('code') instead
----------------------------------------------------------------------------------------------------

Time: 82ms; Memory: 6MB

Comments

neel24 created an issue. See original summary.

neel24’s picture

Status: Active » Needs review
StatusFileSize
new2.15 KB

I've created a patch to fix the error.

agrochal’s picture

Status: Needs review » Needs work

You use the wrong way to implement request service inside construct function, check this issue: https://www.drupal.org/project/social_auth_google/issues/3109038

neel24’s picture

My bad, the OAuth2Manager in Social Api had been updated and I was still using an older version, hence that's why the previous request was still working for me. I've updated the patch to fix the coding standards and updated the request.

neel24’s picture

Status: Needs work » Needs review
wells’s picture

Version: 8.x-2.x-dev » 3.x-dev
Status: Needs review » Fixed

Thanks, @neel24. This was committed to the 3.x branch with credit to you -- not sure why the commit didn't show up here but maybe it will later (:

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.