projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docker: arvdoc: start up doc and workbench last so it's less likely the
[arvados.git]
/
docker
/
api
/
omniauth.rb.in
diff --git
a/docker/api/omniauth.rb.in
b/docker/api/omniauth.rb.in
index c5cdc1a6e07cdf3d6fba37c9cf9af638e9147d5a..613f72d1b966a366940d162d6e910a6ecc59e2d2 100644
(file)
--- 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
# 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
# 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
Rails.application.config.middleware.use OmniAuth::Builder do
provider :josh_id, APP_ID, APP_SECRET, CUSTOM_PROVIDER_URL