grape-doorkeeper
grape-doorkeeper copied to clipboard
Doorkeeper 2.0 & Grape 0.10 support
Hey,
I just wanted to upgrade to doorkeeper 2.0 and grape 0.10 and noticed, that this gem doesn't work anymore. It seems that Doorkeeper::DoorkeeperForBuilder.create_doorkeeper_for(*args)
has been removed from doorkeeper.
So, any idea on how to make this work with doorkeeper 2.0? If you have some hints on how to do this, I'll try to transfer it to doorkeeper 2.0 and make a PR
Hi, When I was writing this code, I looked at the source of the rails helpers and copy the necessary parts. You can check how it works now and rewrite this code.
May be this https://github.com/doorkeeper-gem/doorkeeper/wiki/ActionController::Metal-with-doorkeeper wil be usefull.
Hey @fuCtor - I've made a fork which works with doorkeeper 2.0. It works but it is not thoroughly tested and I'm not using doorkeeper for my app any more. Hopefully this code can help with a proper pull request.
https://github.com/fixate/grape-doorkeeper/tree/feature/doorkeeper_2.0_support https://github.com/fixate/grape-doorkeeper/commit/e950db89abf39aef6bde8c8a4b6b36a0ce3337c1