projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '2342-run-command-wrapper' refs #2342
[arvados.git]
/
services
/
api
/
config
/
initializers
/
omniauth.rb.example
diff --git
a/services/api/config/initializers/omniauth.rb.example
b/services/api/config/initializers/omniauth.rb.example
index e7025545a16dd573e091c98691fdcc4294bc51c0..aefcf56625b90e3f3410dbcb4e8f3d4999244719 100644
(file)
--- a/
services/api/config/initializers/omniauth.rb.example
+++ b/
services/api/config/initializers/omniauth.rb.example
@@
-1,11
+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 = '
orv
os-server'
+APP_ID = '
arvad
os-server'
APP_SECRET = rand(2**512).to_s(36) # CHANGE ME!
# Update your custom Omniauth provider URL here
APP_SECRET = rand(2**512).to_s(36) # CHANGE ME!
# Update your custom Omniauth provider URL here
-CUSTOM_PROVIDER_URL = 'http://
auth.clinicalfuture.com
'
+CUSTOM_PROVIDER_URL = 'http://
localhost:3002
'
Rails.application.config.middleware.use OmniAuth::Builder do
provider :josh_id, APP_ID, APP_SECRET, CUSTOM_PROVIDER_URL
end
Rails.application.config.middleware.use OmniAuth::Builder do
provider :josh_id, APP_ID, APP_SECRET, CUSTOM_PROVIDER_URL
end
+
+OmniAuth.config.on_failure = StaticController.action(:login_failure)