https://github.com/cookpad/garage-doorkeeper
Garage extension to integrate doorkeeper gem
https://github.com/cookpad/garage-doorkeeper
Last synced: 5 months ago
JSON representation
Garage extension to integrate doorkeeper gem
- Host: GitHub
- URL: https://github.com/cookpad/garage-doorkeeper
- Owner: cookpad
- License: mit
- Created: 2015-02-08T13:05:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-22T22:17:36.000Z (over 9 years ago)
- Last Synced: 2024-11-14T02:07:06.413Z (6 months ago)
- Language: Ruby
- Homepage:
- Size: 39.1 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Garage::Doorkeeper
[](https://travis-ci.org/cookpad/garage-doorkeeper)A authenticatino/authorization extension for [Garage gem](https://github.com/cookpad/garage)
to integrate [Doorkeeper gem](https://github.com/doorkeeper-gem/doorkeeper).
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:
```ruby
gem 'garage-doorkeeper'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install garage-doorkeeper
## Usage
In `config/initializer/garage.rb`:
```ruby
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