No commit activity in last 3 years
No release in over 3 years
Garage extension to integrate doorkeeper gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.0.0
 Project Readme

Garage::Doorkeeper

Build Status

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

  1. Fork it ( https://github.com/cookpad/garage-doorkeeper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request