-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Given I've followed the setup steps in the readme.
After clicking on login and going through google's steps, this failure occurs after I get redirected back to my jenkins server
I've attached a null pointer exception and the results of a curl attempt at the same URL
Caused by: java.lang.NullPointerException
at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
at com.google.api.client.util.Preconditions.checkNotNull(Preconditions.java:127)
at com.google.api.client.json.jackson2.JacksonFactory.createJsonParser(JacksonFactory.java:96)
at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:85)
at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:81)
at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:88)
at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at org.jenkinsci.plugins.googlelogin.GoogleOAuth2SecurityRealm$2.onSuccess(GoogleOAuth2SecurityRealm.java:172)
at org.jenkinsci.plugins.googlelogin.OAuthSession.doFinishLogin(OAuthSession.java:99)
at org.jenkinsci.plugins.googlelogin.GoogleOAuth2SecurityRealm.doFinishLogin(GoogleOAuth2SecurityRealm.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)curl -v --compressed -X POST -H 'Accept-Encoding: gzip' -H 'User-Agent: Google-HTTP-Java-Client/1.18.0-rc (gzip)' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -d '@-' -- 'https://www.googleapis.com/oauth2/v3/token' << $$$
> code=4%2Fo8zvxXsRLZu7BE33i3HvOS3fSSokk19YAVq3yBh7PaE.UmByNqRDYz0QtIqXn3XwmZwpiCBXlAI&grant_type=authorization_code&redirect_uri=https%3A%2F%2Fjenkins.logentries.net%2FsecurityRealm%2FfinishLogin&scope=profile+email&client_id=902893496828-middssn89ik182jlj9jld8212g53k48r.apps.googleusercontent.com&client_secret=LS9b-8bthLLwsXcuxDP0tZAo+
> * Adding handle: conn: 0x7fda89804000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fda89804000) send_pipe: 1, recv_pipe: 0
* About to connect() to www.googleapis.com port 443 (#0)
* Trying 74.125.24.95...
* Connected to www.googleapis.com (74.125.24.95) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate: *.googleapis.com
* Server certificate: Google Internet Authority G2
* Server certificate: GeoTrust Global CA
* Server certificate: Equifax Secure Certificate Authority
> POST /oauth2/v3/token HTTP/1.1
> Host: www.googleapis.com
> Accept: */*
> Accept-Encoding: gzip
> User-Agent: Google-HTTP-Java-Client/1.18.0-rc (gzip)
> Content-Type: application/x-www-form-urlencoded; charset=UTF-8
> Content-Length: 337
>
* upload completely sent off: 337 out of 337 bytes
< HTTP/1.1 401 Unauthorized
< Vary: Origin
< Vary: X-Origin
< WWW-Authenticate: Bearer realm="https://accounts.google.com/AuthSubRequest"
< Content-Type: application/json; charset=UTF-8
< Content-Encoding: gzip
< Date: Mon, 08 Dec 2014 20:19:45 GMT
< Expires: Mon, 08 Dec 2014 20:19:45 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
* Server GSE is not blacklisted
< Server: GSE
< Alternate-Protocol: 443:quic,p=0.02
< Transfer-Encoding: chunked
<
{
"error": "invalid_client",
"error_description": "Unauthorized"
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels