google auth update
This commit is contained in:
parent
0d597813ec
commit
650127988e
BIN
app/assets/images/btn_google_signin_light_normal_web@2x.png
Normal file
BIN
app/assets/images/btn_google_signin_light_normal_web@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
BIN
app/assets/images/btn_google_signin_light_pressed_web@2x.png
Normal file
BIN
app/assets/images/btn_google_signin_light_pressed_web@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
@ -1,5 +1,3 @@
|
||||
%p= link_to 'Login with Google', auth_at_provider_path(provider: :google)
|
||||
|
||||
-#
|
||||
%h2 Something more helpful later
|
||||
%p= raw(ap @doc)
|
||||
%p
|
||||
= link_to auth_at_provider_path(provider: :google) do
|
||||
= image_tag 'btn_google_signin_light_normal_web@2x.png', size: '50%'
|
||||
|
@ -130,7 +130,7 @@ Rails.application.config.sorcery.configure do |config|
|
||||
|
||||
config.google.key = ENV["google_key"]
|
||||
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.vk.key = ""
|
||||
|
Loading…
Reference in New Issue
Block a user