Ah, yes. I saw your original post but couldn't see why it would be happening - it wasn't an error I came across when getting mine working.
The code I use for Google accounts (regardless of whether they're apps or not) is like this... UserService us = UserServiceFactory.getUserService(); response.sendRedirect(us.createLoginURL(nextPageURL, null, "https://www.google.com/accounts/o8/id", null)); When I tried with https://www.google.com/a/mydomain.com/o8/ud?be=o8 (with or without the be=o8 bit) instead of https://www.google.com/accounts/o8/id I get a 500 error and nothing in the logs - literally nothing, even when showing "All requests"! The error is on this page... http://myapp.mydomain.com/_ah/login_redir?claimid=https://www.google.com/a/mydomain.com/o8/ud&continue=http://myapp.mydomain.com/public/loggedin?continue=http%3A%2F%2Fmyapp.mydomain.com%2Fadmin%2Fhome If you did use the method I've used, you could check the domain of the user after they're logged in I guess? Thanks, Mat. On 4 November 2011 10:03, Koen Maes <k...@koma.be> wrote: > Relevant code? > > * at startup, first thing that happens is a redirect like in case parameter > "domain" is present, otherwise I sent 401 - Unauthorized. The redirect seems > to cause the server error. > > Set<String> attributesRequest = new HashSet<String>(); > > attributesRequest.add("openid.mode=checkid_immediate"); > > attributesRequest.add("openid.ns=http://specs.openid.net/auth/2.0"); > > String loginUrl = > userService.createLoginURL(request.getOriginalRef().toString(), domain, > "https://www.google.com/a/" + domain + "/o8/ud", new HashSet<String>()); > > response.redirectTemporary(loginUrl); > > * Has it ever worked? > > No, only using dev server, this is the first deploy. I tried re-deploying > without luck > > * What have you tried? > > I wonder what other options I have to try ? > > * When do you get the error? > > Immediately and always > > * All accounts or just one OpenID provider? > > It is intended to work with any Google Apps domain - a future apps > marketplace application > > * Any stack trace printed or errors shown in the logs? > > Nothing whatsoever > > * Does your authentication work OK on the development server? > > Yes > > * Why are these questions in order of length, even though I typed themas I > thought of them? > > LOL > > One more thing : > navigating to data store admin on the backend gives me this error : > > Error: Not Found > > The requested > URL /_ah/login_required?continue=http://ah-builtin-python-bundle-dot-latest-dot-koma-software-3.appspot.com/_ah/datastore_admin/ was > not found on this server. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine-java/-/EO8cxjjMUskJ. > To post to this group, send email to google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.