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)
Takashi SASAKI
unread,
Jan 28, 2011, 9:09:39 PM1/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine, Jean-Lou Dupont
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 "takas...@gmail.com" in Java
version.
Anyway I believe I could move forward. Thanks, all.
On Jan 28, 9:00 pm, Takashi SASAKI <takashi...@gmail.com> wrote:
> Hi, all.
>
> I noticed that built-in OAuth support does work in GAE Java
> but does not work in GAE Python.
>
On Jan 29, 11:09 am, Takashi SASAKI <takashi...@gmail.com> wrote:
> 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
> ,
> also helped me personally. Thanks.
>
> On Jan 28, 9:00 pm, Takashi SASAKI <takashi...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi, all.
>
> > I noticed that built-in OAuth support does work in GAE Java
> > but does not work in GAE Python.
>
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google App Engine
Hi, all
I'm still fighting with GAE built-in OAuth.
I noticed that when I sign WITHOUT access token,
my service provider recognizes consumer key.
But when I sign with access token, my service provider doesn't,
that is, it throws an exception.
Requesting with access token in my consumer :
request.sign_request(signature_method, consumer, access_token) # with
access_token
request.sign_request(signature_method, consumer, None) # WITHOUT
access_token
Getting OAuth user in my service provider :
oauth.getCurrentUser() // Java version
oauth.get_current_user() # Python version
Getting OAuth consumer key in my service provider :
oauth.getOAuthConsumerKey() // Java version
oauth.get_oauth_consumer_key() # Python version