These changes make the mongodb example current and fix a couple minor issues. #13

Open
wants to merge 14 commits into
from

1 participant

@elbunce

These changes also add testing to the mongodb example for password and client_credentials grant types.
Fix for the client_credentials to fail appropriately if the grant fails.
Fix so client_credentials grants_type doesn't generate a refresh_token as per the spec it SHOULD NOT.

elbunce and others added some commits Feb 14, 2012
@elbunce elbunce Update MongoDB implementation and example. eeb82c2
@elbunce elbunce Remove unnecessary bit. 6037111
@elbunce elbunce Remove test db info. 48c80ca
@elbunce elbunce Make sure we stash the user_id in the collections. 2f7b9e2
@elbunce elbunce Add code to check client_credentials and password grant types to mong…
…o examples.

Fix client_credentials grant check to throw an exception if the grant fails.
4861a87
@elbunce elbunce Per http://tools.ietf.org/html/draft-ietf-oauth-v2-23#section-4.4.3 c…
…lient_credentials grant_type's SHOULD NOT generate refresh tokens.
ff17f92
@elbunce elbunce Remove some old PDO crud and an outdated comment. 7f91329
@elbunce elbunce Ok, turns out the grant type client credentials result check is super…
…flous (see checkRestrictedGrantType).
f2f729e
Virginie BARDALES Fix test suite and change requires to require_onces 990a8c4
@elbunce elbunce Merge pull request #1 from vbardales/fix-test-suite
Fix test suite and change requires to require_onces
3526518
@elbunce elbunce Make the mongo checkClientCredentialsGrant() example return something…
… more consistent with the other check{}Grant() calls.
a8e24a6
@elbunce elbunce Fix the $stored[] returns from user and client credentials path not b…
…ork if a scope is passed in.

Realistically the scope handling needs to be cleaned up, but not today...
beef5bf
@elbunce elbunce Merge branch 'master' of https://github.com/elbunce/oauth2-php a7a8511
@elbunce elbunce Make grantAccessToken return the token that was created (useful for l…
…ogging and other purposes.

Add a getError accessor method to OAuth2ServerException.
29a70d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment