# This initialiser is overwritten when deployed to preview, staging & production.

GDS::SSO.config do |config|
  config.user_model   = 'User'
  config.oauth_id     = ENV['OAUTH_ID']
  config.oauth_secret = ENV['OAUTH_SECRET']
  config.oauth_root_url = Plek.current.find('signon')
end

# This initialiser is overwritten when deployed to integration, staging & production.

GDS::SSO.config do |config|
  config.user_model   = 'User'
  config.oauth_id     = ENV['OAUTH_ID'] || "abcdefg"
  config.oauth_secret = ENV['OAUTH_SECRET'] || "secret"
  config.oauth_root_url = Plek.current.find('signon')
end

Add fallback OAuth ID and secret
Add fallback OAuth ID and secret

This commit adds a fallback OAuth ID and secret. This will allow the signon-munging script for development to configure signon for this app locally.