-
Notifications
You must be signed in to change notification settings - Fork 950
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
added MongoDB (new php driver mongodb) storage #748
Conversation
Ah I've found that #697 adds this storage too |
Brent has a choice :) |
$mongodb = Bootstrap::getInstance()->getMongoDB(); | ||
} | ||
|
||
public function testSetClientDetails() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curly braces after function declarations should be on their own line, to be consistent with the styles in the rest of this library
This looks promising, but a few major things need to be fixed before we merge this.
|
Ok, I will do the changes after my holidays.
Another thing is that I can change |
@AstRonin Sounds good! Okay, to address your questions:
|
I added new commit, but travis failed again... |
|
||
public function testAuthorizationCode() | ||
{ | ||
$db = new MongoDB('mongodb://localhost:27017/oauth2_server_php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test fails because Call to undefined method MongoDB\Driver\Manager::setAuthorizationCode() in /home/travis/build/bshaffer/oauth2-server-php/test/OAuth2/OpenID/Storage/AuthorizationCodeTest.php on line 77
.
I think you need to be more specific here and use the namespace new \OAuth2\Storage\ MongoDB because the error suggests you are trying to call the setAuthorizationCode
on the underlying MongoDB driver class, which obv won't work.
ok, it's my fault, I mixed classes in Bootstrap in previous test...
Will I need add something else in travis.yml? |
php5.3 really? http://php.net/supported-versions.php |
https://docs.mongodb.com/ecosystem/drivers/php/#language-compatibility |
HHVM works but you need the specific mongodb.so for that env. |
If anyone is interested, I created companion library over the weekend. https://github.com/chadicus/oauth2-storage-mongodb. Please keep in mind my mongodb library is in its very early stages and I'm sure it has bugs. I would not recommend for production use at this time. |
Added in #790 |
No description provided.