projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
6146: Ignore SIGPIPE while feeding data to tar. Rely on close() retval instead.
[arvados.git]
/
docker
/
api
/
omniauth.rb.in
diff --git
a/docker/api/omniauth.rb.in
b/docker/api/omniauth.rb.in
index 5636e0489a7d6231d4b33c8767287aeed92026eb..8daa30043b19842037cf0b6f02efd2b273365b01 100644
(file)
--- a/
docker/api/omniauth.rb.in
+++ b/
docker/api/omniauth.rb.in
@@
-4,7
+4,11
@@
APP_ID = '@@SSO_CLIENT_APP_ID@@'
APP_SECRET = '@@SSO_CLIENT_SECRET@@'
# Update your custom Omniauth provider URL here
APP_SECRET = '@@SSO_CLIENT_SECRET@@'
# Update your custom Omniauth provider URL here
-CUSTOM_PROVIDER_URL = '@@OMNIAUTH_URL@@'
+if '@@OMNIAUTH_URL@@' != ''
+ CUSTOM_PROVIDER_URL = '@@OMNIAUTH_URL@@'
+else
+ CUSTOM_PROVIDER_URL = 'https://@@SSO_HOSTNAME@@.@@ARVADOS_DOMAIN@@'
+end
# This is a development sandbox, we use self-signed certificates
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
# This is a development sandbox, we use self-signed certificates
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE