Garage::Doorkeeper
A authenticatino/authorization extension for Garage gem to integrate Doorkeeper gem. Garage is a Rails extension for RESTful Hypermedia API.
Doorkeeper compatibility
- Use garage-doorkeeper v1.x with doorkeeper v1.x.
- Use garage-doorkeeper v2.x with doorkeeper v2.x.
garage-doorkeeper v1 keeps compatibility with doorkeeper v1.x, actually ">= 0.6.7" and "< 1.5.0". garage-doorkeeper v2 keeps compatibility with doorkeeper v2.x, actually ">= 2.0.0".
Installation
Add this line to your application's Gemfile:
gem 'garage-doorkeeper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install garage-doorkeeper
Usage
In config/initializer/garage.rb
:
Garage.configuration.strategy = Garage::Strategy::Doorkeeper
# Then configure doorkeeper if you didn't.
Doorkeeper.configure do
#...
end
Then Garage will authenticate/authorize requests using doorkeeper feature.
Contributing
- Fork it ( https://github.com/cookpad/garage-doorkeeper/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request