This gem contains the Alfred strategy for OmniAuth.
gem "omniauth-alfred"
- 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
- Add a callback route
get '/auth/:provider/callback', to: 'sessions#create'