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.
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:
> 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.
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:
> 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:
> > 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.
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:
> 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:
> > 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:
> > > 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.
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:
> 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:
> > 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:
> > > 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:
> > > > 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.
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
> 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: > > 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:
> > > 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:
> > > > 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:
> > > > > 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 received this message because you are subscribed to the Google Groups > "glue-development" group. > To post to this group, send email to glue-development@googlegroups.com. > To unsubscribe from this group, send email to > glue-development+unsubscribe@googlegroups.com<glue-development%2Bunsubscrib e@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/glue-development?hl=en.