aboutsummaryrefslogtreecommitdiff
path: root/config/initializers/gds-sso.rb
blob: d595be855cb4b8fd16a6185f2a13d985c25aafd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'gds-sso'

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