Created
May 31, 2012 00:44
-
-
Save coderforhire/2839917 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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