aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/auth
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/auth')
-rw-r--r--app/controllers/auth/evernote_controller.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/auth/evernote_controller.rb b/app/controllers/auth/evernote_controller.rb
new file mode 100644
index 0000000..c581e31
--- /dev/null
+++ b/app/controllers/auth/evernote_controller.rb
@@ -0,0 +1,12 @@
+class Auth::EvernoteController < ApplicationController
+ def index
+ client = EvernoteOAuth::Client.new
+ request_token = client.request_token(:oauth_callback => '/auth/evernote/callback')
+ request_token.authorize_url
+ @access_token = request_token.get_access_token(oauth_verifier: params[:oauth_verifier])
+ end
+
+ def callback
+ render 'le callback'
+ end
+end