This gem is an OmniAuth 1.0 Strategy for authenticating with the Quizlet API
Register your application with Quizlet.
Important: your callback URL needs to be specified as http://[hostname]/auth/quizlet/callback
or http://[hostname]/users/auth/quizlet/callback
.
Get started by adding the Quizlet strategy to your Gemfile
:
gem 'omniauth-quizlet'
In a Rails app, add the Quizlet provider to your Omniauth middleware, e.g. in a file like @config/initializers/omniauth.rb@:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :quizlet, ENV['QUIZLET_KEY'], ENV['QUIZLET_SECRET']
end
In any Rack app you can add the Quizlet strategy like so:
use OmniAuth::Builder do
provider :quizlet, ENV['QUIZLET_KEY'], ENV['QUIZLET_SECRET']
end
Copyright (c) 2012 kohactive
This source code released under an MIT license.