diff options
| author | Teddy Wing | 2015-12-30 17:34:15 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-30 17:45:28 -0800 |
| commit | cc524b311ae7b65bb788121d3b3777406bf25250 (patch) | |
| tree | 84ff2b2f6aea481963211544ebbbea2307f6b0b1 | |
| parent | 2051cd66c9c02777e2eff1789ce2d1f76dd2e7e9 (diff) | |
| download | Evernote-Rails-Example-cc524b311ae7b65bb788121d3b3777406bf25250.tar.bz2 | |
Add OmniAuth middleware
Add a call to initialise the Evernote provider specified by
'omniauth-evernote'.
Use the sandbox base URL.
| -rw-r--r-- | config/initializers/omniauth.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb new file mode 100644 index 0000000..2e1e7eb --- /dev/null +++ b/config/initializers/omniauth.rb @@ -0,0 +1,4 @@ +Rails.application.config.middleware.use OmniAuth::Builder do + provider :developer unless Rails.env.production? + provider :evernote, ENV['EVERNOTE_CONSUMER_KEY'], ENV['EVERNOTE_CONSUMER_SECRET'], :client_options => { :site => 'https://sandbox.evernote.com' } +end |
