Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

userId in OAuth response #91

Open
ptbrowne opened this issue Jun 26, 2014 · 0 comments
Open

userId in OAuth response #91

ptbrowne opened this issue Jun 26, 2014 · 0 comments

Comments

@ptbrowne
Copy link

Hi,

I am currently experimenting with OAuth.io and I find it great so far !

Nevertheless, I have a question/feature request. Currently, the flow in my application
looks like this.

  • User logs in via OAuth
  • I get the access_token
  • I do a 'me' call to get the provider userId
  • I send the access_token and the provider userId to the server
  • The server can find the user with the provider userId and store the access_token
    for when we need to get the friends asynchronously server-side etc...

Since we are on mobile, we want to cut down requests as much as possible. I thought that it would be more straightforward and would remove a request if I had not
to do this 'me' call from the client side. I see from the facebook doc that the oauthResponse contains the userID. Why does OAuth.io removes it from the response I get ? Would it be possible to include it in the response ?

I would be happy to make a pull request if you think it is a good idea.

Thanks a lot !

Patrick Browne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant