From 132713850a7b3cd37e01dac9d6f17c90c2acc430 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Mon, 29 Dec 2014 15:45:33 -0800 Subject: [PATCH] clarify base64 sso error message --- lib/single_sign_on.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/single_sign_on.rb b/lib/single_sign_on.rb index 9f2006b8815..928e0b00cab 100644 --- a/lib/single_sign_on.rb +++ b/lib/single_sign_on.rb @@ -24,7 +24,7 @@ class SingleSignOn if sso.sign(parsed["sso"]) != parsed["sig"] diags = "\n\nsso: #{parsed["sso"]}\n\nsig: #{parsed["sig"]}\n\nexpected sig: #{sso.sign(parsed["sso"])}" if parsed["sso"] =~ /[^a-zA-Z0-9=\r\n\/+]/m - raise RuntimeError, "The SSO field should be Base64 encoded, using only A-Z, a-z, 0-9 and = characters. Your input contains characters we don't understand as Base64, see http://en.wikipedia.org/wiki/Base64 #{diags}" + raise RuntimeError, "The SSO field should be Base64 encoded, using only A-Z, a-z, 0-9, +, /, and = characters. Your input contains characters we don't understand as Base64, see http://en.wikipedia.org/wiki/Base64 #{diags}" else raise RuntimeError, "Bad signature for payload #{diags}" end