davido / gerrit-oauth-provider

OAuth2 authentication provider for Gerrit Code Review. Please upload changes for review to: https://gerrit-review.googlesource.com/#/admin/projects/plugins/oauth
Apache License 2.0
141 stars 84 forks source link

Help me OAUTH suddenly Error (Server Error) #141

Open chjobaby opened 4 years ago

chjobaby commented 4 years ago

[HTTP-76] ERROR com.google.gerrit.pgm.http.jetty.HiddenErrorHandler : Error in GET /gerrit/oauth?state=mWQA4B1nh7nKCmgV7kDeP08VU8ngJxQPmORbJLkd9VE&code=4%252FzAEVcCBsSHDMS2pCsItw6DALqG4wGCe8ut4vChL_9_1K7rOx3V3OdkprUtxB0a8W_F4TcJcv4SlajnG1XiwZVws&scope=email+profile+openid+https%253A%252F%252Fwww.googleapis.com%252Fauth%252Fuserinfo.email+https%253A%252F%252Fwww.googleapis.com%252Fauth%252Fuserinfo.profile&authuser=0&hd=domain.com&prompt=none org.scribe.exceptions.OAuthException: Cannot extract an acces token. Response was: { "error": "invalid_grant", "error_description": "Malformed auth code."

Thanks You !

chjobaby commented 4 years ago

Not Fixed? Help me @davido ?

davido commented 4 years ago

I'm not sure. Is it a new problem? Was it already working? What is your Gerrit and OAuth plugin version? What have you changed?

chjobaby commented 4 years ago

I'am use Gerrit version: 2.15.2, OAuth plugin Version: 2.14.6, OAuth google I'am change token => login ok => log out=>login again=> Server Error ("error_description": "Malformed auth code.") If change token =>login ok=>log out=>login again=> Server Error ("error_description": "Malformed auth code.") Help me @davido Thanks You !

chjobaby commented 4 years ago

@davido Help me?

davido commented 4 years ago

2.15.2, OAuth plugin Version: 2.14.6

Those versions are outdated.

Can you try to upgrade, both Gerrit to the latest release 3.1? And get the latest version of the plugin from GerritForge CI: [1] and try again? Can you reproduce the problem? Try on staging site first?

[1] https://gerrit-ci.gerritforge.com/view/Plugins-master/job/plugin-oauth-bazel-master-master/

chjobaby commented 4 years ago

Ok, thanks @davido