Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 494 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 494 Bytes

omniauth-alfred

This gem contains the Alfred strategy for OmniAuth.

Getting Started

Installation

gem "omniauth-alfred"

Basic Usage

  1. Tell OmniAuth about this provider. For a Rails app, your config/initializers/omniauth.rb file should look like this:
Rails.application.config.middleware.use OmniAuth::Builder do
  provider :alfred, "API_KEY", "API_SECRET"
end
  1. Add a callback route
get '/auth/:provider/callback', to: 'sessions#create'