Add Facebook login with Sorcery

The facebook key and secret defined in the sorcery config file are for
testing only and need to be changed and not committed to source when
app is ready to go live
This commit is contained in:
Graham Kaplan
2014-04-05 19:18:57 -07:00
parent a6da30dc08
commit 230295790b
17 changed files with 112 additions and 12 deletions
@@ -0,0 +1,14 @@
require 'test_helper'
class OauthsControllerTest < ActionController::TestCase
test "should get oauth" do
get :oauth
assert_response :success
end
test "should get callback" do
get :callback
assert_response :success
end
end
+6
View File
@@ -0,0 +1,6 @@
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :authentication do
end
end
+4
View File
@@ -0,0 +1,4 @@
require 'test_helper'
class OauthsHelperTest < ActionView::TestCase
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class AuthenticationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end