Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Where is the user id on request?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Gilmer  
View profile  
 More options Nov 9 2010, 12:02 pm
From: Chris Gilmer <chris.gil...@gmail.com>
Date: Tue, 9 Nov 2010 09:02:13 -0800 (PST)
Local: Tues, Nov 9 2010 12:02 pm
Subject: Where is the user id on request?
I'm building an oauth system in python based on the Tornado web
server's built in auth system to connect with Get Glue.  My first
surprise is that the oauth token isn't returned in both the response
and the cookie, I only find it in the cookie.  However, once I figured
that out I found myself stuck on another problem.  Where is the user
id on the next request?

I assume that, as with most oauth systems, I will get the id of the
user or the username of the authenticated user either in the response
or the cookie.  I get neither.  And the api documentation doesn't make
it clear where I should send my next request to get that information.
Can anyone help here?

I'd appreciate any advice or guidance on this issue.

Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen  
View profile  
 More options Nov 9 2010, 5:29 pm
From: Karen <karent...@gmail.com>
Date: Tue, 9 Nov 2010 14:29:43 -0800 (PST)
Local: Tues, Nov 9 2010 5:29 pm
Subject: Re: Where is the user id on request?
Hi Chris,

Good find. Previously we've been telling developers to make an extra
ping call to
return the userId from the token. We are deprecating that in favor for
returning the
userId on the cookie after querying for the access_token.

We will also be adding all return parameters to the response headers
as well.

Our next API release will be end of this week, so look for that then.

Thanks for your patience!

Karen

On Nov 9, 12:02 pm, Chris Gilmer <chris.gil...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Gilmer  
View profile  
 More options Nov 15 2010, 8:06 pm
From: Chris Gilmer <chris.gil...@gmail.com>
Date: Mon, 15 Nov 2010 17:06:12 -0800 (PST)
Local: Mon, Nov 15 2010 8:06 pm
Subject: Re: Where is the user id on request?
Karen,

Did you release the documentation this week to run these new calls?  I
want to try and get my application up and running so we can start
using Get Glue:)

Best,
Chris

On Nov 9, 2:29 pm, Karen <karent...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karen Teng  
View profile  
 More options Nov 17 2010, 9:06 am
From: Karen Teng <ka...@getglue.com>
Date: Wed, 17 Nov 2010 06:06:57 -0800 (PST)
Local: Wed, Nov 17 2010 9:06 am
Subject: Re: Where is the user id on request?
This is now live on our API platform. The documentation will be
updated to say:

After successfully accessing the token, the Glue API returns the
glue_userId of the user who just logged in, along with the oauth_token
and oauth_token_secret. These values are also returned in the response
headers.

On Nov 15, 8:06 pm, Chris Gilmer <chris.gil...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Gilmer  
View profile  
 More options Nov 18 2010, 1:44 pm
From: Chris Gilmer <chris.gil...@gmail.com>
Date: Thu, 18 Nov 2010 10:44:49 -0800 (PST)
Local: Thurs, Nov 18 2010 1:44 pm
Subject: Re: Where is the user id on request?
Excellent!  The oauth_token and _oauth_token_secret are stored under
_oauth_request_token in the cookie and separated by a '|' character.
What is the glue_userID stored under in the cookie?  I'll also take a
look at the headers to see what's there.

Chris

On Nov 17, 6:06 am, Karen Teng <ka...@getglue.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dominick D'Aniello  
View profile  
 More options Nov 18 2010, 2:20 pm
From: "Dominick D'Aniello" <netpr...@gmail.com>
Date: Thu, 18 Nov 2010 14:20:13 -0500
Local: Thurs, Nov 18 2010 2:20 pm
Subject: Re: Where is the user id on request?

You should not be reading these values out of a cookie. Instead, you should
get the values from the response to your call to
http://api.getglue.com/oauth/access_token

You should receive something like:

oauth_token=XXXXXXX&oauth_token_secret=XXXXXX&glue_userId=XXXXXX

As karen mentioned you can also grab this out of the response headers:

http://grab.by/grabs/3ac5f93b4d4e544062b7d5d2d7ce7810.png

On Thu, Nov 18, 2010 at 1:44 PM, Chris Gilmer <chris.gil...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »