Error when trying to login using google account

14 views
Skip to first unread message

Robert Ahlin Toftegaard

unread,
Sep 16, 2011, 4:22:50 AM9/16/11
to google-a...@googlegroups.com
This morning, the openId-login on one of my applications, suddenly stopped working. 

I use the following basic code (found on http://code.google.com/appengine/articles/openid.html#fa

<%
Map<String, String> openIdProviders;

openIdProviders = new HashMap<String, String>();
openIdProviders.put("Google", "google.com/accounts/o8/id");
openIdProviders.put("MyOpenId", "myopenid.com");

Set<String> attributes = new HashSet<String>();

for (String providerName : openIdProviders.keySet()) {
String providerUrl = openIdProviders.get(providerName);
String callbackUrl = signInPath;

//If a continue-parameter is set, send it forward
if (request.getParameter("continue") != null) {
callbackUrl += "?continue="
+ request.getParameter("continue");
}
String loginUrl = userService.createLoginURL(callbackUrl, null,
providerUrl, attributes);
out.println("<a id=\"" + providerName + "\" href=\"" + loginUrl
+ "\">" + providerName + "</a>");
}
%>

Multiple instances of this application has been running on App engine for months, without any problems. But this morning, all instances of the application, returns an error when clicking on "Google" (Log in using google account)  

The error message:

Error: Server Error

The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this error message and the query that caused it.

url: http://XXXX.appspot.com/_ah/login_redir?claimid=google.com/accounts/o8/id&continue=http://XXXX.appspot.com/sign-in/


Am I using an out dated way of doing this?
Reply all
Reply to author
Forward
0 new messages