Re: [appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
I started from this thread to try these values : https://groups.google.com/d/msg/google-apps-marketplace-api/HpqT-Bh0BjY/KwevpQVoE30J -- 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/-/qHRzQkKnPO0J. 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.
Re: [appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
Excellent but... a. Why?! b. Where's the documentation?! On 4 November 2011 12:49, Koen Maes wrote: > fixed it by providing simply the domain as openid idenitty and NULLs for the > other params : > loginUrl = userService.createLoginURL(request.getOriginalRef().toString(), > null, domain, null); > > > :-D > > -- > 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/-/EBwqiAnjFU4J. > 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.
Re: [appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
fixed it by providing simply the domain as openid idenitty and NULLs for the other params : loginUrl = userService.createLoginURL(request.getOriginalRef().toString(), null, domain, null); :-D -- 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/-/EBwqiAnjFU4J. 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.
Re: [appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
Well, I guess that wont work... I dont want to ordinary google accounts to have access, only customers who installed my app from the google apps marketplace. My URL will be whitelisted and users will never be presented with the login screen. So far the theory Hope someone @ google will take a look at this... maybe the OpenId url is not correct. -- 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/-/yPJeKDwtUwgJ. 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.
Re: [appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
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 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 attributesRequest = new HashSet(); > > 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()); > > 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.
Re: [appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
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 attributesRequest = new HashSet(); 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()); 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 FoundThe 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.
Re: [appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
I'm successfully using OpenID and have signed in this morning. Can you give some more details please? Relevant code? Has it ever worked? What have you tried? When do you get the error? All accounts or just one OpenID provider? Any stack trace printed or errors shown in the logs? Does your authentication work OK on the development server? Why are these questions in order of length, even though I typed them as I thought of them? On 4 November 2011 09:42, Koen Maes wrote: > did you ever get by this error ? same thing happens to me today! > > -- > 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/-/V_gyYP4SZmQJ. > 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.
[appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
did you ever get by this error ? same thing happens to me today! -- 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/-/V_gyYP4SZmQJ. 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.
[appengine-java] Re: "Error: Server Error" occurs when login using OpenID using GAE/J
By the way, there are no log message in GAE log, seems the error occurs before hitting my application. i'm using GAE1.5.0. Thanks -- 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/-/hFIRi-gL41MJ. 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.