mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 11:10:10 +08:00
FIX: skip adding sso diagnostics if sso object is nil
This commit is contained in:
parent
e655e1863f
commit
1ea0cbece8
@ -116,7 +116,7 @@ class SessionController < ApplicationController
|
|||||||
sso = DiscourseSingleSignOn.parse(request.query_string)
|
sso = DiscourseSingleSignOn.parse(request.query_string)
|
||||||
rescue DiscourseSingleSignOn::ParseError => e
|
rescue DiscourseSingleSignOn::ParseError => e
|
||||||
if SiteSetting.verbose_sso_logging
|
if SiteSetting.verbose_sso_logging
|
||||||
Rails.logger.warn("Verbose SSO log: Signature parse error\n\n#{e.message}\n\n#{sso.diagnostics}")
|
Rails.logger.warn("Verbose SSO log: Signature parse error\n\n#{e.message}\n\n#{sso&.diagnostics}")
|
||||||
end
|
end
|
||||||
|
|
||||||
# Do NOT pass the error text to the client, it would give them the correct signature
|
# Do NOT pass the error text to the client, it would give them the correct signature
|
||||||
|
Loading…
x
Reference in New Issue
Block a user