1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Get OAuth credentials from environment

This commit is contained in:
2019-02-09 13:43:14 +01:00
parent 856212f53a
commit bd7fd0b793
2 changed files with 2 additions and 2 deletions

View File

@@ -237,7 +237,7 @@ Devise.setup do |config|
config.omniauth :developer, fields: [:name], uid_field: :name
end
if Rails.env.production?
config.omniauth :github, Rails.application.credentials.github[:client_id], Rails.application.credentials.github[:client_secret], scope: ''
config.omniauth :github, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET'], scope: ''
end
if Rails.env.test?
config.omniauth :github, '', '', scope: ''