X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d6e4e65cf3aae701c3e02a814329757e869a1d6d..b56a28d1aa985af24a2ac61084f8f6a20ec9ef15:/services/api/lib/josh_id.rb diff --git a/services/api/lib/josh_id.rb b/services/api/lib/josh_id.rb index 1a6e38a431..f18c0edda0 100644 --- a/services/api/lib/josh_id.rb +++ b/services/api/lib/josh_id.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'omniauth-oauth2' module OmniAuth module Strategies @@ -36,7 +40,7 @@ module OmniAuth options.client_options[:site] = options[:custom_provider_url] options.client_options[:authorize_url] = "#{options[:custom_provider_url]}/auth/josh_id/authorize" options.client_options[:access_token_url] = "#{options[:custom_provider_url]}/auth/josh_id/access_token" - if Rails.configuration.sso_insecure + if Rails.configuration.TLS.Insecure options.client_options[:ssl] = {verify_mode: OpenSSL::SSL::VERIFY_NONE} end ::OAuth2::Client.new(options.client_id, options.client_secret, deep_symbolize(options.client_options))