Comments (9)
I get that this is a problem, but I'm not sure how to solve it... Please tell me
more, if you are using the same server and consumer_key, how to you
differentiate the
callbacks? What is different that would provide a unique key?
Original comment by brunobg%[email protected]
on 4 Jun 2010 at 2:50
- Changed state: Accepted
from oauth-php.
I'm not entirely sure what you mean, but the user_id is different for each. Is
this enough?
Original comment by [email protected]
on 4 Jun 2010 at 4:04
from oauth-php.
Maybe I'm missing the point of exclusive server/consumer_key combos as well.
Aren't we supposed to be using the same consumer_key, from our application, for
all of our users to connect with? If so, then we'd differentiate who it is
based on our application's user ID (via sessions or whatnot).
Original comment by [email protected]
on 12 Jun 2010 at 10:08
from oauth-php.
[deleted comment]
from oauth-php.
"authenticate [...] to the same server + consumer_key combo [...] using the
same credentials"
The user_id you pass to the OAuth server would only be returned back to you. A
Oauth Server never stores your user_id, but the OWN user_id based on the logged
in user!
So if you logged in twice with your Google accound, you will twice get the same
token back, and your different user_id of course. Because the server does not
care what you pass as user_id. (It´s yours)
If you want a new token, log in with another Google accound. ;o)
Original comment by [email protected]
on 13 Jun 2010 at 7:58
- Changed state: Invalid
from oauth-php.
"So if you logged in twice with your Google accound, you will twice get the
same token back"
Yes: this is the case I'm referring to
"If you want a new token, log in with another Google accound"
I'm happy with having the same token. However, this causes an exception.
Maybe I'm misunderstanding how to use things. What is the best method of using
oauth-php as the primary method for authentication for a site, when this is no
previously known user_id ?
Original comment by [email protected]
on 14 Jun 2010 at 10:16
from oauth-php.
You will get the user_id after the user has authenticated at the service
provider. I do not really know whats the end point from google for getting the
user information of the authenticated user.
OAuth is not primary made for authenticating users at your server! It´s made
for making signed api calls to another server (google in this case) without the
need to provide username/password to you.
A good starting point for OAuth with Google are these docs:
http://code.google.com/intl/de-DE/apis/accounts/docs/OAuth.html#GetAuth
And a google online client to test the google api calls:
http://googlecodesamples.com/oauth_playground/
Btw. i really want to help you! ;o) Maybe you can descripe more granulated what
you want to do.
Do you want that your users can sign in with their google account on your
system?
Maybe Google Federated Login helps more?
http://code.google.com/intl/de-DE/apis/accounts/docs/OpenID.html
Original comment by [email protected]
on 14 Jun 2010 at 7:35
from oauth-php.
Ok, got the google end point for getting the user information:
https://www-opensocial.googleusercontent.com/api/people/@me
You have to sign this api call with the access token you got from google. Let
me know if this works or not! :o)
Original comment by [email protected]
on 14 Jun 2010 at 8:28
from oauth-php.
More info could be found in the docs:
http://code.google.com/intl/de-DE/apis/contacts/docs/poco/1.0/developers_guide.h
tml#RetrievingUserContact
Original comment by [email protected]
on 14 Jun 2010 at 8:33
from oauth-php.
Related Issues (20)
- Minor fix that allows for the implementation of your OAuthStore
- OAuth POST request combines parameters from original server request with parameters being sent via oauth for Oauth consumers HOT 1
- Array of Array
- No server associated with consumer_key "..."
- Putting project to packagist
- Saving Recurring events from Google calendar api
- connect Oauth(PHP) Client to Oauth server (ruby on rails)
- cgi sapi oauth callback is required hot fix available
- Error with OAuth instance 2legged
- Invalid consumer HOT 1
- remote server request error
- Error when creating tables with foreign key constraints
- POST data included in signature when content type is "multipart/form-data" HOT 4
- I get error "Authorized token from Service Provider does not match supplied Request Token details"
- Patch for /trunk/example/client/twoleggedtwitter.php
- OAuth Verification Failed HOT 1
- oAuth with PHP 4.4.9
- where is the updateConsumer function? HOT 1
- [deleted issue]
- SQL bug (with fix) in PostgreSQL Store checkServerNonce method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth-php.