🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

warden-doorkeeper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

warden-doorkeeper

bundlerRubyGems.org
Version
0.3.0
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 23 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts