Well I was playing around with the "/main.jsp" part of the above code to 
see if I could get something working and oddly enough it seems that adding 
the custom domain to it fixes the 500 error without messing it up on 
appspot! Thanks for the help!

On Tuesday, July 29, 2014 7:35:03 PM UTC-4, Joel E wrote:
>
> Oh, I think I understand but I don't think it solves the issue. See, the 
> App Engine user's API accepts relative URLs and then takes care of 
> processing the call to the openID provider. Here's how my code works:
>
> String LogInURL = userService.createLoginURL("/main.jsp", null, 
> openid_identifier, null);
> resp.sendRedirect(LogInURL);
> I take the URL of the provider from the user (openid_identifier) and send 
> it to the App Engine Users API to create a redirect URL. Then I send the 
> user to the provider through that URL. The user first logs in through their 
> provider but on return to my app they land on a 500 error page instead of 
> being redirected through to /main.jsp. If I start the process from my 
> appspot.com domain instead it goes through to /main.jsp just fine.
>
> Thanks for trying though!
>
> On Tuesday, July 29, 2014 7:07:09 PM UTC-4, Mihail Russu wrote:
>>
>> Most OAuth providers require you to specify full callback url (in the 
>> request headers as well as in the control panel of their websites) so when 
>> changing domains you'd also need to update the URL on their end but I 
>> didn't realize until now that you are having issues with OpenID and NOT 
>> with OAuth, I am not sure if it's the same there.
>>
>> On Tuesday, July 29, 2014 5:18:29 PM UTC-5, Joel E wrote:
>>>
>>> Could you explain what you mean by the callback/redirect URL? I didn't 
>>> read anything about that in the documentation. Also, nothing from the error 
>>> appears in the logs since the crash happens in app engine's internal code.
>>>
>>> Thanks!
>>>
>>> On Tuesday, July 29, 2014 6:05:42 PM UTC-4, Mihail Russu wrote:
>>>>
>>>> Are there any error details in the Logs section that you can provide?
>>>>
>>>> Just last Friday I transferred an app from .appspot.com to a custom 
>>>> domain and everything worked great as soon as I changed the 
>>>> callback/redirect URLs on OAuth providers' end. Could it be that you 
>>>> simply 
>>>> forgot to update them? (this is unlikely to cause a 500 on AppEngine's end 
>>>> but it's a start)
>>>>
>>>> Mihail.
>>>>
>>>> On Tuesday, July 29, 2014 12:41:29 PM UTC-5, Joel E wrote:
>>>>>
>>>>> I posted the details of this issue on StackOverflow here 
>>>>> <http://stackoverflow.com/questions/24498646/500-server-error-on-app-engine-when-using-openid-users-api-on-custom-domain>
>>>>>  
>>>>> but basically the Users API is crashing when accessed by an app running 
>>>>> on 
>>>>> a custom domain. I have not been able to get any help with this issue and 
>>>>> it would be great to get an answer from someone at Google as this seems 
>>>>> to 
>>>>> be an issue with App Engine's internal code. I'd be happy for any 
>>>>> suggestions or help at this point though.
>>>>>
>>>>> Thanks!
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to