aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-06-08 02:22:14 -0400
committerTeddy Wing2014-06-08 02:22:14 -0400
commit9f7dfa9233003cb496499dbbcd51ba10d31d3484 (patch)
tree862bcb5a73991d321bc05001fdfb6a54fb9d8348
parent555ea34da891b0a017dce6e6f2b5c636126a7e37 (diff)
downloadsellevate-9f7dfa9233003cb496499dbbcd51ba10d31d3484.tar.bz2
auth.rb: fix authentication method
* Fix incorrect variable name * Rename authenticate method because that's not quite what it's doing. It's more like starting the auth process.
-rw-r--r--fancy_bear/contextio/auth.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/fancy_bear/contextio/auth.rb b/fancy_bear/contextio/auth.rb
index b3382b5..174648a 100644
--- a/fancy_bear/contextio/auth.rb
+++ b/fancy_bear/contextio/auth.rb
@@ -8,9 +8,9 @@ module FancyBear
@contextio = ::ContextIO.new(API_KEY, API_SECRET)
end
- def authenticate(email)
- connection_token = @contextio.connect_tokens.create('http://google.com')
- connect_tokens.browser_redirect_url
+ def connect(callback_url)
+ connection_token = @contextio.connect_tokens.create(callback_url)
+ connection_token.browser_redirect_url
end
end