Comments (14)
This only works in master
branch right now. Which one are you using?
from doorkeeper.
First I added this to my gem file: gem 'doorkeeper', then I tried gem 'doorkeeper', '~> 0.4.2'.
Still the same problem (even after bundle).
from doorkeeper.
Now I tried to add this to my gem file and ran bundle
gem 'doorkeeper', :git => 'https://github.com/applicake/doorkeeper.git'
According to the log I got this version now: doorkeeper (0.5.0.dev) from https://github.com/applicake/doorkeeper.git (at master)
What else do I need to do to "active" mongoid?
from doorkeeper.
you should use:
gem 'doorkeeper', :git => 'https://github.com/applicake/doorkeeper'
Mongoid support will be released in 0.5
from doorkeeper.
Yeah, I tried that and I got the version 0.5.0.dev now. But how do I get doorkeeper to "switch" from SQL to MongoId. Right now if I create a new application it still gets saved to the SQL database and not Mongo.
from doorkeeper.
Sorry, didn't see the previous message. If you use the version from git, this is everything you should do.
Do you have multiple databases in your app?
from doorkeeper.
No, I don´t think so anyway. Now I have moved one step forward but gets this error:
Invalid options passed to Doorkeeper::AccessGrant.store_in: oauth_access_grants.
from doorkeeper.
What's the Mongoid version you're using?
from doorkeeper.
I am using mongoid (3.0.0.rc).
from doorkeeper.
Is it possible for you to try with mongoid 2.x?
The API for 3.0 changed a lot, and it's not supported yet.
from doorkeeper.
Using 2.4.0-stable of MongoId now. But now I get this error when running doorkeeper install "BSON::BSON_CODER.update_max_bson_size is deprecated and now a no-op. It will be removed in v2.0."
from doorkeeper.
Also: `validate_db_name': db_name must be a string or symbol (TypeError)
from doorkeeper.
Created a new application and used the correct Gem versions and now it works fine!
Thank you for creating this gem! Do you know when latest version of Mongoid will be supported?
from doorkeeper.
Cool.
It actually depends on mongoid release, if they release 3.0 final soon, we'll probably stick with this version.
from doorkeeper.
Related Issues (20)
- MAJOR ISSUE - matching_token_for not considering custom attributes HOT 1
- Issue with defining application_class in Doorkeeper config causing NoMethodError
- Do not recommend setting access_token_expires_in to nil HOT 1
- It is not possible to revoke refresh token bound to the expired access token HOT 3
- Enhancement: expose `current_resource_owner` to views
- Better support for credential rotation
- Always requiring `redirect_uri` is not compliant to RFC 6749 HOT 2
- NotImplementedError error response must define #exception_class after upgrading to 5.6.7 from 5.6.6 HOT 4
- NoMethodError: undefined method `name_for_response' since v5.6.8 HOT 3
- Doorkeeper::Errors::InvalidRedirectUri Raised When No Redirect URI Set HOT 2
- OpenId Connect - No e-mail information in the SSO response
- How do I know if an application has been authorized by a resource owner? HOT 1
- Regression with Errors in 5.6.8 HOT 5
- Refreshing a token sending scopes separated by `+` does not work
- Cleanup job removes not expired tokens HOT 1
- Different access grants return the same access token with `reuse_access_token` enabled
- Removing active_record_options was a breaking change HOT 1
- `Doorkeeper::AccessToken.find_or_create_for` with empty scopes raises NoMethodError HOT 6
- Token revocation error when token contains null byte. HOT 2
- Doorkeeper is loading ActiveRecord too early
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 doorkeeper.