google auth update

This commit is contained in:
Mark Moser 2015-11-14 11:37:27 -06:00
parent 0d597813ec
commit 650127988e
4 changed files with 4 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

View File

@ -1,5 +1,3 @@
%p= link_to 'Login with Google', auth_at_provider_path(provider: :google) %p
= link_to auth_at_provider_path(provider: :google) do
-# = image_tag 'btn_google_signin_light_normal_web@2x.png', size: '50%'
%h2 Something more helpful later
%p= raw(ap @doc)

View File

@ -130,7 +130,7 @@ Rails.application.config.sorcery.configure do |config|
config.google.key = ENV["google_key"] config.google.key = ENV["google_key"]
config.google.secret = ENV["google_secret"] config.google.secret = ENV["google_secret"]
config.google.callback_url = "http://localhost:3000/oauth/callback?provider=google" config.google.callback_url = ENV["google_callback"]
config.google.user_info_mapping = { email: "email", first_name: "given_name", last_name: "family_name" } config.google.user_info_mapping = { email: "email", first_name: "given_name", last_name: "family_name" }
# config.vk.key = "" # config.vk.key = ""