grape-doorkeeper icon indicating copy to clipboard operation
grape-doorkeeper copied to clipboard

Doorkeeper 2.0 & Grape 0.10 support

Open 23tux opened this issue 10 years ago • 3 comments

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

23tux avatar Jan 08 '15 13:01 23tux

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.

fuCtor avatar Jan 08 '15 13:01 fuCtor

May be this https://github.com/doorkeeper-gem/doorkeeper/wiki/ActionController::Metal-with-doorkeeper wil be usefull.

fuCtor avatar Jan 17 '15 06:01 fuCtor

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

sdbondi avatar Feb 16 '15 14:02 sdbondi