No commit activity in last 3 years
No release in over 3 years
Integration with Doorkeeper, an OAuth 2.0 provider.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2
 Project Readme

Warden Doorkeeper Strategy

Introduction

This is an authentication strategy for Warden that integrates with Doorkeeper.

Doorkeeper does not natively play well with Warden and Devise. The goal of this gem is to provide better support for those running Doorkeeper alongside Devise/Warden. Instead of protecting controllers using doorkeeper_authorize! you may use your Devise and Warden protection methods, e.g. authenitcate_user!, to achieve the same effect but have your usual bindings work, e.g. current_user.

Setup

Pretty easy if you use bundler:

gem "warden-doorkeeper"

Or if you use RubyGems:

gem install warden-doorkeeper

Then require "warden/strategies/doorkeeper" in your project code (or your Gemfile) and add it to the Warden strategies collection as such:

Warden::Strategies.add(:doorkeeper, Warden::Strategies::Doorkeeper)

Now you may authenticate using the strategy name :doorkeeper, but you can change that part to whatever you'd like.