oltu - Why is Google OAuth2 returning java.io.IOException? -


within last few weeks suite of our applications using google's oauth2 authentication system , apache oltu library have stopped working.

all attempts register or log in via google meet same error:

login/registration action failed: java.io.ioexception: attempted read closed stream. 

this working fine , have made no code or application changes in intervening time.

has changed @ google end causing these requests fail?

i no seem have logging or information available google developer console. within application log entries indicate attempt authenticate not succeed.

the code failing, used succeed is:

            // obtain authrequest message sent openid provider         oauthclientrequest oauthrequest = oauthclientrequest                 .authorizationlocation(discovery.getauthzendpoint())                 .setclientid(oauth2util.getclientid())                 .setredirecturi(responseurl)                 .setresponsetype(responsetype.code.tostring())                 .setscope(google_scope)                 .setstate(state)                 .buildquerymessage();          response.sendredirect(oauthrequest.getlocationuri()); 

which triggers exception:

java.io.ioexception: attempted read closed stream. 

all advice gratefully received

google retired openid 2.0 on 20th april. see http://googledevelopers.blogspot.co.uk/2015/03/reminder-to-migrate-to-oauth-20-or.html


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -