0.02
No commit activity in last 3 years
No release in over 3 years
This gem provides access to devise helpers inside of Grape applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

< 4, >= 2.2.8
~> 0.7
< 5, > 3.2
 Project Readme

Grape::Devise

Build Status

Grape::Devise adds support for devise helpers from inside Grape::APIs.

Installing

Installing is simple. Just add the grape_devise gem to your Gemfile, run bundle install and it's ready to go.

gem 'grape_devise'

Usage

The devise API can now be accessed from inside of Grape request blocks.

class MyAPI < Grape::API
    get "/requires-authentication" do
        authenticate_user!
    end
    
    get "/who-am-i" do
        current_user
    end
end

FAQ

####Can I use this with rails Yes you can! Grape::Devise works with your existing rails sessions to provide seamless authentication between your rails app and grape APIs.