X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fc100474c5d74b20b2576bd3a8f633746c0c6fb2..2f3d49bde80526060d3337f13dfa91cd581ac222:/docker/api/omniauth.rb.in diff --git a/docker/api/omniauth.rb.in b/docker/api/omniauth.rb.in index c5cdc1a6e0..613f72d1b9 100644 --- a/docker/api/omniauth.rb.in +++ b/docker/api/omniauth.rb.in @@ -1,10 +1,13 @@ # Change this omniauth configuration to point to your registered provider # Since this is a registered application, add the app id and secret here -APP_ID = '@@OMNIAUTH_APP_ID@@' -APP_SECRET = '@@OMNIAUTH_APP_SECRET@@' +APP_ID = '@@SSO_CLIENT_APP_ID@@' +APP_SECRET = '@@SSO_CLIENT_SECRET@@' # Update your custom Omniauth provider URL here -CUSTOM_PROVIDER_URL = '@@OMNIAUTH_URL@@' +CUSTOM_PROVIDER_URL = 'https://' + ENV['SSO_PORT_443_TCP_ADDR'].to_s + +# This is a development sandbox, we use self-signed certificates +OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE Rails.application.config.middleware.use OmniAuth::Builder do provider :josh_id, APP_ID, APP_SECRET, CUSTOM_PROVIDER_URL