forked from bofh/fetsite
omniauth_secrets added
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
/config/omniauth_secrets.yml
|
||||
/config/initializers/omniauth_secrets.rb
|
||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||
#
|
||||
|
||||
@@ -224,7 +224,8 @@ Devise.setup do |config|
|
||||
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
||||
# up on your models and hooks.
|
||||
#config.omniauth :facebook, 'appid', 'secret'
|
||||
|
||||
secrets = YAML.load_file("#{::Rails.root.to_s}/config/omniauth_secrets.yml")
|
||||
config.omniauth :facebook, secrets["facebook"]["appid"], secrets["facebook"]["secret"]
|
||||
# ==> Warden configuration
|
||||
# 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.
|
||||
|
||||
4
config/omniauth_secrets.yml.example
Normal file
4
config/omniauth_secrets.yml.example
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
facebook:
|
||||
appid: "<appid>"
|
||||
secret: "<secret>"
|
||||
Reference in New Issue
Block a user