@@ -16,7 +16,8 @@ module EvernoteConcern |
||
16 | 16 |
token: evernote_oauth_token, |
17 | 17 |
consumer_key: evernote_consumer_key, |
18 | 18 |
consumer_secret: evernote_consumer_secret, |
19 |
- sandbox: false |
|
19 |
+ # set to false in production |
|
20 |
+ sandbox: true |
|
20 | 21 |
) |
21 | 22 |
end |
22 | 23 |
|
@@ -5,7 +5,11 @@ module Agents |
||
5 | 5 |
description <<-MD |
6 | 6 |
The Evernote Agent connects with a user's Evernote note store. |
7 | 7 |
|
8 |
- To be able to use this agent with your account you need to authenticate with Evernote in the [Services](/services) section. |
|
8 |
+ Visit [Evernote](https://dev.evernote.com/doc/) to set up an Evernote app and receive an api key and secret. |
|
9 |
+ Store these in the Evernote environment variables in the .env file. |
|
10 |
+ You will also need to create a [Sandbox](https://sandbox.evernote.com/Registration.action) account to use during development. |
|
11 |
+ |
|
12 |
+ Next, you'll need to authenticate with Evernote in the [Services](/services) section. |
|
9 | 13 |
|
10 | 14 |
Options: |
11 | 15 |
|
@@ -266,11 +266,11 @@ Devise.setup do |config| |
||
266 | 266 |
if defined?(OmniAuth::Strategies::Evernote) && |
267 | 267 |
(key = ENV["EVERNOTE_OAUTH_KEY"]).present? && |
268 | 268 |
(secret = ENV["EVERNOTE_OAUTH_SECRET"]).present? |
269 |
- # for production: |
|
270 |
- config.omniauth :evernote, key, secret |
|
271 |
- |
|
272 | 269 |
# for development: |
273 |
- # config.omniauth :evernote, key, secret, client_options: { :site => 'https://sandbox.evernote.com' } |
|
270 |
+ config.omniauth :evernote, key, secret, client_options: { :site => 'https://sandbox.evernote.com' } |
|
271 |
+ |
|
272 |
+ # for production: |
|
273 |
+ # config.omniauth :evernote, key, secret |
|
274 | 274 |
end |
275 | 275 |
|
276 | 276 |
# ==> Warden configuration |