I got it.

In Python version OAuth service provider,
hat causes exception is not  oauth.get_current_user()
but oauth.get_oauth_consumer_key() .
The former works without exception.

In Java version OAuth service provider,
oauth.getOAuthConsumerKey() also throws exception.

Now I found another strange behavior.
oauth.get_current_user() returns "takashi316" in Python version
while oauth.getCurrentUser() returns "[email protected]" in Java
version.

Anyway I believe I could move forward. Thanks, all.

Jean-Lou Dupont, who had posted "OAuth integration issue with Google
Apps" in
http://groups.google.com/group/google-appengine/browse_frm/thread/b45e0f48568b5bb1/95fe61ab88a93f9d
,
also helped me personally. Thanks.

On Jan 28, 9:00 pm, Takashi SASAKI <[email protected]> wrote:
> Hi, all.
>
> I noticed that built-in OAuth support does work in GAE Java
> but does not work in GAE Python.
>
> My simple OAuth service providers arehttp://pastebin.com/qJZEFE4Cfor GAE 
> Python andhttp://pastebin.com/N09TC9K6for GAE Java.
>
> Python version is athttp://antanxi.appspot.com/oauth_sp
> Java version is athttp://sandbox-java.appspot.com/HelloServlet
>
> I use the same OAuth consumer for both providers.
> Am I missing something important in GAE Python version provider ?
>
> Thanks
>
> Takashi SASAKI (@TakashiSasaki in Twitter)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to