Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oAuth with Google Apps fail... #19

Open
dcmwai opened this issue Nov 22, 2017 · 2 comments
Open

oAuth with Google Apps fail... #19

dcmwai opened this issue Nov 22, 2017 · 2 comments

Comments

@dcmwai
Copy link

dcmwai commented Nov 22, 2017

oAuth with Google Apps fail...

I've configure as per advise by the help files..
but still it have somthing error 6...

Anything I can do?

@GunoH
Copy link

GunoH commented May 3, 2020

I'm consistently getting this error as well.

After enabling oauth debug logging (by adding $conf['oauth_debug_file'] = '/tmp/piwigo_oauth.log'; to local/config/config.inc.php), I'm getting this error in the log file:

  "error": {
    "code": 403,
    "message": "Legacy People API has not been used in project ************ before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=************ then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.Help",
        "links": [
          {
            "description": "Google developers console API activation",
            "url": "https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=************"
          }
        ]
      }
    ]
  }
}

Looks like the API being used (https://developers.google.com/people/legacy) has been shut down.

The HybridAuth library that is being used to implement the oauth stuff might have fixed this in v2.13. So updating the social connect plugin to use (at least) this version of HybridAuth (from the current v2.5.1) might fix the problem.

[edit]
I upgraded HybridAuth to v2.13 (see #22). After that, all I had to do was disable Piwigo's session handler (see #22 (comment)) and things started working again.

@GunoH GunoH mentioned this issue May 3, 2020
@kchen
Copy link

kchen commented May 16, 2021

I upgraded to Hybridauth 2.17 and made no other changes to Piwigo or Social Connect, and that appears to resolve the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants