When OIDC is not enabled and user manually reaches its endpoint,

Galaxy now informs the user that OIDC is not enabled on that instance.
This commit is contained in:
vjalili
2018-03-19 17:31:39 -07:00
parent 654206ec9d
commit 6dcdcc40d5
@@ -17,6 +17,10 @@ class OIDC(BaseUIController):
@web.expose
def login(self, trans, provider):
if not trans.app.config.enable_oidc:
msg = "Login to Galaxy using third-party identities is not enabled on this Galaxy instance."
log.debug(msg)
return trans.show_error_message(msg)
success, message, redirect_uri = trans.app.authnz_manager.authenticate(provider, trans)
return trans.response.send_redirect(web.url_for(redirect_uri))