Issue 13: resource owner
Status:  New
Owner: ----
Reported by arnaud.lb, Mar 12, 2011
I can't seem to find a way to store and retrieve informations about the protected resource / resource owner.

E.g. verifyAccessToken() verifies that the access token is valid, but we don't now for what it is actually valid (e.g. for which resource / user account / ...).
Mar 22, 2011
#1 arnaud.lb
The following changes worked for me : https://code.google.com/r/arnaudlb-oauth2-php-clone/source/detail?r=5116210b74698f5bbb410a4a7d2cac9a297c0739 

This just allows to pass some abstract data to finishClientAuthorization(), which is then stored in code/token tables, and returned by verifyAccessToken()).

This is backwards compatible.

The following changes also update the PDO example : https://code.google.com/r/arnaudlb-oauth2-php-clone/source/detail?r=0006c9e528d9a9fe654ebb78b21e95718bb683f2
Sep 26, 2011
#2 pg051...@gmail.com
I faced the same problem.
Nov 7, 2011
#3 johncren...@priacta.com
Ditto. This is a pretty big oversight. Kudos to arnaud for his commit, but IMO it isn't enough. The resource owner is just as important of an entity as the tokens and grants, and deserves dedicated handling in the library (not just a little "application data" dump).

The resource owner can be passed around as an opaque value, just like state is, but it deserves specific handling.
Nov 7, 2011
#4 jens.k...@gmail.com
John, it looks like the repository here on Google Code is abandoned. There are several forks on GitHub, perhaps you've got more luck with it.
Nov 8, 2011
#5 johncren...@priacta.com
Oh wow, I didn't think to check Git Hub for clones. Good call. After some digging I found that https://github.com/quizlet/oauth2-php appears to be a highly active clone. It resolves this issue, substantially improves the general architecture of the library, and appears to be regularly updating to deal with the revisions to the spec.
Nov 8, 2011
#6 jens.k...@gmail.com
Yeah, the quizlet fork is really up to date to the specs. You also should checkout https://github.com/jk/oauth2-php for a working PDO (SQL) example.