mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-11-23 19:33:46 +01:00
Get OAuth credentials from environment
This commit is contained in:
1 parent
856212f53a
commit
bd7fd0b793
2 files changed
+2
-2
No files matched your search
@@ -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: ''
|
||||
|
||||
Reference in new issue
Block a user