DEV: Require sso and sig query string params for sso_login

This commit is contained in:
Vinoth Kannan 2018-10-12 05:03:30 +05:30
parent 2502a3f780
commit 39b7e32848
1 changed files with 3 additions and 0 deletions

View File

@ -108,6 +108,9 @@ class SessionController < ApplicationController
def sso_login def sso_login
raise Discourse::NotFound.new unless SiteSetting.enable_sso raise Discourse::NotFound.new unless SiteSetting.enable_sso
params.require(:sso)
params.require(:sig)
sso = DiscourseSingleSignOn.parse(request.query_string) sso = DiscourseSingleSignOn.parse(request.query_string)
if !sso.nonce_valid? if !sso.nonce_valid?
if SiteSetting.verbose_sso_logging if SiteSetting.verbose_sso_logging