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

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

Use external URLs for Signon
Use external URLs for Signon

This uses the new external_url_for method in Plek, which handles
environments where the URLs for internal and external routing are
different.
