{"action":"created","issue":{"url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/64","repository_url":"https://api.github.com/repos/davido/gerrit-oauth-provider","labels_url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/64/comments","events_url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/64/events","html_url":"https://github.com/davido/gerrit-oauth-provider/issues/64","id":179630610,"number":64,"title":"invalid_request - OAuth 2 parameters can only have a single value: grant_type","user":{"login":"westhusing","id":18428404,"avatar_url":"https://avatars.githubusercontent.com/u/18428404?v=3","gravatar_id":"","url":"https://api.github.com/users/westhusing","html_url":"https://github.com/westhusing","followers_url":"https://api.github.com/users/westhusing/followers","following_url":"https://api.github.com/users/westhusing/following{/other_user}","gists_url":"https://api.github.com/users/westhusing/gists{/gist_id}","starred_url":"https://api.github.com/users/westhusing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westhusing/subscriptions","organizations_url":"https://api.github.com/users/westhusing/orgs","repos_url":"https://api.github.com/users/westhusing/repos","events_url":"https://api.github.com/users/westhusing/events{/privacy}","received_events_url":"https://api.github.com/users/westhusing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-27T22:21:30Z","updated_at":"2016-09-27T22:59:47Z","closed_at":null,"body":"I've been unable to login to Gerrit with OAuth because I'm receiving the following error:\r\n\r\n```\r\n[2016-09-27 22:16:31,984] [HTTP-55] ERROR com.google.gerrit.pgm.http.jetty.HiddenErrorHandler : Error in GET /oauth?state=A2eIPFnldmHhWwlFDMU8aF2DBFqga5Gn8tx1vvYnIF4&code=4/NoyEEN7RUGjCleYTxglQzy7rof42ABwAfbJ5ZQNA5js\r\norg.scribe.exceptions.OAuthException: Cannot extract an acces token. Response was: {\r\n  \"error\" : \"invalid_request\",\r\n  \"error_description\" : \"OAuth 2 parameters can only have a single value: grant_type\"\r\n}\r\n        at com.googlesource.gerrit.plugins.oauth.Google2Api$GoogleJsonTokenExtractor.extract(Google2Api.java:163)\r\n        at com.googlesource.gerrit.plugins.oauth.Google2Api$GoogleOAuthService.getAccessToken(Google2Api.java:112)\r\n        at com.googlesource.gerrit.plugins.oauth.GoogleOAuthService.getAccessToken(GoogleOAuthService.java:221)\r\n        at com.google.gerrit.httpd.auth.oauth.OAuthSession.login(OAuthSession.java:98)\r\n        at com.google.gerrit.httpd.auth.oauth.OAuthWebFilter.doFilter(OAuthWebFilter.java:109)\r\n        at com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:73)\r\n        at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:117)\r\n        at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:136)\r\n        at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:105)\r\n        at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:75)\r\n        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)\r\n        at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)\r\n        at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)\r\n        at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)\r\n        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)\r\n        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\r\n        at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)\r\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\r\n        at org.eclipse.jetty.server.Server.handle(Server.java:499)\r\n        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\r\n        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)\r\n        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)\r\n        at java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\n@davido, do you know what could be happening here?  Where should I dig deeper to find the root cause?\r\n\r\nThanks.\r\n\r\nEDIT: This is Gerrit 2.12.5"},"comment":{"url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/comments/250023851","html_url":"https://github.com/davido/gerrit-oauth-provider/issues/64#issuecomment-250023851","issue_url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/64","id":250023851,"user":{"login":"jpitt42","id":909043,"avatar_url":"https://avatars.githubusercontent.com/u/909043?v=3","gravatar_id":"","url":"https://api.github.com/users/jpitt42","html_url":"https://github.com/jpitt42","followers_url":"https://api.github.com/users/jpitt42/followers","following_url":"https://api.github.com/users/jpitt42/following{/other_user}","gists_url":"https://api.github.com/users/jpitt42/gists{/gist_id}","starred_url":"https://api.github.com/users/jpitt42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpitt42/subscriptions","organizations_url":"https://api.github.com/users/jpitt42/orgs","repos_url":"https://api.github.com/users/jpitt42/repos","events_url":"https://api.github.com/users/jpitt42/events{/privacy}","received_events_url":"https://api.github.com/users/jpitt42/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T22:59:47Z","updated_at":"2016-09-27T22:59:47Z","body":"I guess that answers my question.  I just finished posting https://github.com/davido/gerrit-oauth-provider/issues/66 before seeing this.  Me too with gerrit-2.12.4."}}
{"actor":{"display_login":"jpitt42"}}