0.0
No commit activity in last 3 years
No release in over 3 years
OmniAuth strategy for Swoop passwordless authentication
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0

Runtime

~> 2.2.2
 Project Readme

Description

Custom omniauth strategy for Swoop, a password-free authentication tool.

Rails Usage

Add gem 'omniauth-swoop' to your Gemfile

In config/initializers/omniauth.rb put the following code:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :swoop, ENV['SWOOP_ID'], ENV['SWOOP_SECRET']
end

ENV['SWOOP_ID'] should correspond to the CLIENT_ID of the property you set up via the swoop admin dashboard, and ENV['SWOOP_SECRET'] should correspond to the property's SECRET.

Testing

If you are contributing to this ruby gem you can test it by:

(1) running gem build omniauth-swoop.gemspec from the gem's root directory
(2) running bundle update omniauth-swoop in a test rails app.