Commit c8d575c6 by Trịnh Hoàng Phúc

install gem omniauth-facebook

parent ff55254b
...@@ -33,6 +33,8 @@ gem 'activerecord-import' ...@@ -33,6 +33,8 @@ gem 'activerecord-import'
gem 'will_paginate' gem 'will_paginate'
gem 'omniauth-facebook'
gem 'settingslogic' gem 'settingslogic'
# Use Active Storage variant # Use Active Storage variant
# gem 'image_processing', '~> 1.2' # gem 'image_processing', '~> 1.2'
......
...@@ -103,6 +103,7 @@ GEM ...@@ -103,6 +103,7 @@ GEM
ffi (1.12.2-x86-mingw32) ffi (1.12.2-x86-mingw32)
globalid (0.4.2) globalid (0.4.2)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
hashie (4.1.0)
i18n (1.8.2) i18n (1.8.2)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
image_processing (1.10.3) image_processing (1.10.3)
...@@ -110,6 +111,7 @@ GEM ...@@ -110,6 +111,7 @@ GEM
ruby-vips (>= 2.0.17, < 3) ruby-vips (>= 2.0.17, < 3)
jbuilder (2.10.0) jbuilder (2.10.0)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
jwt (2.2.1)
kaminari (1.2.0) kaminari (1.2.0)
activesupport (>= 4.1.0) activesupport (>= 4.1.0)
kaminari-actionview (= 1.2.0) kaminari-actionview (= 1.2.0)
...@@ -145,6 +147,8 @@ GEM ...@@ -145,6 +147,8 @@ GEM
msgpack (1.3.3-java) msgpack (1.3.3-java)
msgpack (1.3.3-x64-mingw32) msgpack (1.3.3-x64-mingw32)
msgpack (1.3.3-x86-mingw32) msgpack (1.3.3-x86-mingw32)
multi_json (1.14.1)
multi_xml (0.6.0)
multipart-post (2.1.1) multipart-post (2.1.1)
mysql2 (0.5.3) mysql2 (0.5.3)
mysql2 (0.5.3-x64-mingw32) mysql2 (0.5.3-x64-mingw32)
...@@ -159,6 +163,20 @@ GEM ...@@ -159,6 +163,20 @@ GEM
mini_portile2 (~> 2.4.0) mini_portile2 (~> 2.4.0)
nokogiri (1.10.9-x86-mingw32) nokogiri (1.10.9-x86-mingw32)
mini_portile2 (~> 2.4.0) mini_portile2 (~> 2.4.0)
oauth2 (1.4.4)
faraday (>= 0.8, < 2.0)
jwt (>= 1.0, < 3.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
omniauth (1.9.1)
hashie (>= 3.4.6)
rack (>= 1.6.2, < 3)
omniauth-facebook (6.0.0)
omniauth-oauth2 (~> 1.2)
omniauth-oauth2 (1.6.0)
oauth2 (~> 1.1)
omniauth (~> 1.9)
orm_adapter (0.5.0) orm_adapter (0.5.0)
pry (0.13.0) pry (0.13.0)
coderay (~> 1.1) coderay (~> 1.1)
...@@ -305,6 +323,7 @@ DEPENDENCIES ...@@ -305,6 +323,7 @@ DEPENDENCIES
listen (>= 3.0.5, < 3.2) listen (>= 3.0.5, < 3.2)
meta-tags meta-tags
mysql2 mysql2
omniauth-facebook
pry pry
puma (~> 4.1) puma (~> 4.1)
rails (~> 6.0.2, >= 6.0.2.2) rails (~> 6.0.2, >= 6.0.2.2)
......
...@@ -260,7 +260,7 @@ Devise.setup do |config| ...@@ -260,7 +260,7 @@ Devise.setup do |config|
# Add a new OmniAuth provider. Check the wiki for more information on setting # Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks. # up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo' # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
config.omniauth :facebook, "586868888590440", "6cd80c6f7926e1eb729db4a3bf2f9413", token_params: { parse: :json }
# ==> Warden configuration # ==> Warden configuration
# If you want to use other strategies, that are not supported by Devise, or # If you want to use other strategies, that are not supported by Devise, or
# change the failure app, you can configure them inside the config.warden block. # change the failure app, you can configure them inside the config.warden block.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment