Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created May 31, 2012 00:44
Show Gist options
  • Save coderforhire/2839917 to your computer and use it in GitHub Desktop.
Save coderforhire/2839917 to your computer and use it in GitHub Desktop.
require 'stripedotcom'
# Set the default hostname for omniauth to send callbacks to.
# seems to be a bug in omniauth that it drops the httpS
# this still exists in 0.2.0
# note: you will have to change this url to your Heroku app url when you deploy it to Heroku.
OmniAuth.config.full_host = 'http://localhost:3000'
module OmniAuth
module Strategies
#tell omniauth to load our strategy
autoload :Stripedotcom, 'lib/stripedotcom'
end
end
Rails.application.config.middleware.use OmniAuth::Builder do
provider :stripedotcom, "CLEITNID", "PRIVATEKEY"
end
~
~
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment