cirrusidentity / simplesamlphp-module-authoauth2

OAuth2/OIDC Authentication module for SimpleSAMLphp
GNU Lesser General Public License v2.1
31 stars 28 forks source link

Authentication to Google endpoint V2 return 400 error #39

Open dpenezic opened 4 years ago

dpenezic commented 4 years ago

Hi,

we discover yesterday that authentication against Google endpoint v2 doesnt work any more returning error good describe in follow URL : https://www.drupal.org/project/social_auth_google/issues/3129494 Aditionaly to link on developer.google.com, I found also https://community.boomi.com/s/article/oauth2refreshtokenonlyworksforanhouringoogleintegration After some search we found code which is responsible for generating that parameter (a module you use ) { "name": "league/oauth2-client", "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/thephpleague/oauth2-client.git", "reference": "cc114abc622a53af969e8664722e84ca36257530" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/cc114abc622a53af969e8664722e84ca36257530", "reference": "cc114abc622a53af969e8664722e84ca36257530", "shasum": "" }, "require": { "guzzlehttp/guzzle": "^6.0", "paragonie/random_compat": "^1|^2|^9.99", "php": "^5.6|^7.0" }, "require-dev": { "eloquent/liberator": "^2.0", "eloquent/phony-phpunit": "^1.0|^3.0", "jakub-onderka/php-parallel-lint": "^0.9.2", "phpunit/phpunit": "^5.7|^6.0", "squizlabs/php_codesniffer": "^2.3|^3.0" }, "type": "library", "extra": { "branch-alias": { "dev-2.x": "2.0.x-dev" } }, "autoload": { "psr-4": { "League\\OAuth2\\Client\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], "authors": [ { "name": "Alex Bilbie", "role": "Developer", "email": "hello@alexbilbie.com", "homepage": "http://www.alexbilbie.com" }, { "name": "Woody Gilk", "role": "Contributor", "homepage": "https://github.com/shadowhand" } ], "description": "OAuth 2.0 Client Library", "keywords": [ "Authentication", "SSO", "authorization", "identity", "idp", "oauth", "oauth2", "single sign on" ], "time": "2018-11-22T18:33:57+00:00" },

And I also submit issue to that project https://github.com/thephpleague/oauth2-client/issues/832#issue-604587400

pradtke commented 4 years ago

We haven't been able to replicate the error. Are you seeing this when the user goes to Google to login? It is working fine for us when a user is sent to https://accounts.google.com/o/oauth2/v2/auth