aboutsummaryrefslogtreecommitdiff
path: root/config/initializers/gds-sso.rb
blob: 3e78219b0be249a954394ca271d05114f545107a (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 = "http://localhost:3001"

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