OpenID and GAE module problem

15 views
Skip to first unread message

@davidbasoko

unread,
Sep 7, 2011, 8:06:01 AM9/7/11
to play-framework
Hi all,

I've a problem with the follow enviroment. I've installed play 1.2.3
and GAE module. I'm trying to use OpenID to get login with my google
account, but when I execute this line:

"if(!OpenID.id("https://www.google.com/accounts/o8/
id").required("email", "http://axschema.org/contact /
email").verify())",

it always return false.

I've been debugging the OpenID.java class from play (located at
play.libs), and using the GAE module (1.4 version) I get an exception
at this line

"response.getContentType().contains("application/xrds+xml")".

If I do the same test but removing the GAE module this exception not
appears, and the openid login works well.

I've clone the play repository and changed the line

"response.getContentType().contains("application/xrds+xml")"

by this one

"response.getHeader("Content-Type").contains("application/xrds
+xml")"

and now it works, but I'm getting a new exception now
"java.lang.RuntimeException: java.lang.IllegalStateException: Already
connected".

I've been looking for information about this issue and it seems to be
a problem with WS library using the post method in GAE, but I'm not
sure if it has been fixed yet.

Anyone could help me?
Reply all
Reply to author
Forward
0 new messages