aboutsummaryrefslogtreecommitdiff
path: root/config/initializers/gds-sso.rb
blob: 98c3a1ed0b97ef4174f0ce2175e2ad49a6cb42cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
GDS::SSO.config do |config|
  config.user_model   = 'User'

  # set up ID and Secret in a way which doesn't require it to be checked in to source control...
  config.oauth_id     = ENV['OAUTH_ID']
  config.oauth_secret = ENV['OAUTH_SECRET']

  # optional config for location of Signon
  config.oauth_root_url = Plek.new.external_url_for('signon')

  # Pass in a caching adapter cache bearer token requests.
  config.cache = Rails.cache
end