A platform for community discussion. Free, open, simple.
DEV: Add extension point to allow modifying SSO URL (#7937)
Osama Sayegh997add3af966
diff --git a/app/controllers/session_controller.rb b/app/controllers/session_controller.rbindex b48ee8a8f14..1ca3f8a476e 100644--- a/app/controllers/session_controller.rb+++ b/app/controllers/session_controller.rb@@ -39,7 +39,7 @@ class SessionController < ApplicationControllerif SiteSetting.verbose_sso_loggingRails.logger.warn("Verbose SSO log: Started SSO process\n\n#{sso.diagnostics}")end- redirect_to sso.to_url+ redirect_to sso_url(sso)elserender body: nil, status: 404end@@ -525,4 +525,9 @@ class SessionController < ApplicationController@sso_error = textrender status: status, layout: 'no_ember'end++ # extension to allow plugins to customize the SSO URL+ def sso_url(sso)+ sso.to_url+ endend