Comments (19)
I like the idea of being database agnostic. Ideally it would be nice to release this sort of feature in version 0.4/0.5.
@piotrj ?
from doorkeeper.
Hmmm I don't think that just using ActiveModel would make it database agnostic. That is not what ActiveModel is for. But if we would use this and some ORM adapater (for example: https://github.com/ianwhite/orm_adapter) then yeah - that would make sense. And yeah - I think that supporting something except ActiveRecord would be awesome idea and target for 0.4/0.5.
from doorkeeper.
I am also interested with getting this to work with mongoid.
from doorkeeper.
In favor of this too (Re:Mongoid)
from doorkeeper.
It seems like it's possible to use Mongoid with doorkeeper by pulling epicagency@f0a5f8b
into your branch.
Be warned though. You will lose SQL database support. The code needs to be refactored to work with both ActiveRecord and Mongoid.
Check it out!
from doorkeeper.
I'll definitely take a look. Thanks
from doorkeeper.
Working on this: https://github.com/applicake/doorkeeper/tree/mongoid-support
Run specs with: rake DOORKEEPER_ORM=mongoid
Completely experimental support for now
from doorkeeper.
very cool man. can't wait to try it out.
from doorkeeper.
@felipeelias How do I configure it to use AR/Mongoid?
It doesn't seem to include the files inside lib/doorkeeper/models/mongoid/* ?
from doorkeeper.
just found the answer by reading the source code :p
to use mongoid, edit config/initializers/doorkeeper.rb
add orm 'mongoid'
inside the Doorkeeper.configure block
from doorkeeper.
Awesome - glad to see a mongoid workaround. Thanks!
from doorkeeper.
We're getting there. Still have to rebase with latest changes in the gem
from doorkeeper.
Sweet, thx for the update!
from doorkeeper.
Great news !
from doorkeeper.
Just rebased the branch and fix bazillion of issues with mongo. I thought it would be easier but it turned out it wasn't.
This is the branch
Hopefully it would be straightforward to work from mongoid. There might be issues with installation process which will try to copy migration files, so be aware (it will be fixed).
If somebody who uses mongo can test this branch it would be great! Please make comments and things that you think it could be improved.
Thanks for waiting (so long) 😄
from doorkeeper.
Nice work! 👍
from doorkeeper.
Will try to test it this week-end
from doorkeeper.
Thanks for the nice work, i was looking for it really, noe, wants to know where to get started, will be nice to have a wiki page
from doorkeeper.
@fawzyj I'll update the docs today and let you know.
from doorkeeper.
Related Issues (20)
- Support OAuth DPoP HOT 1
- reuse_access_token config should be used when refreshing a token HOT 3
- App is not generating the Oauth2 token using doorkeeper gem HOT 2
- 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
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.