Merge pull request #3737 from okriuchykhin/ok_SCI_6184_v2

Improve database and Okta config [SCI-6184]
This commit is contained in:
Alex Kriuchykhin 2021-12-13 10:48:01 +01:00 committed by GitHub
commit 1e652c0a73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -17,8 +17,8 @@
default: &default
adapter: postgresql
encoding: unicode
database: postgres
pool: <%= ENV['DB_POOL'] || ENV['RAILS_MAX_THREADS'] || 5 %>
url: <%= ENV['DATABASE_URL'] %>
# For details on connection pooling, see rails configuration guide
# http://guides.rubyonrails.org/configuring.html#database-pooling
@ -80,7 +80,7 @@ test: &test
# url: <%= ENV['DATABASE_URL'] %>
#
production:
url: <%= ENV['DATABASE_URL'] %>
<<: *default
cucumber:
<<: *test

View file

@ -295,7 +295,7 @@ Devise.setup do |config|
config.omniauth :linkedin, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET'], scope: 'r_liteprofile r_emailaddress'
end
if [ENV['OKTA_CLIENT_ID'], ENV['OKTA_CLIENT_SECRET'], ENV['OKTA_DOMAIN'], ENV['OKTA_AUTH_SERVER_ID']].all?
if [ENV['OKTA_CLIENT_ID'], ENV['OKTA_CLIENT_SECRET'], ENV['OKTA_DOMAIN'], ENV['OKTA_AUTH_SERVER_ID']].all?(&:present?)
config.omniauth(
:okta,
ENV['OKTA_CLIENT_ID'],