mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user