mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: change SSO to use sha256 HMAC, which is more secure
This commit is contained in:
@@ -43,7 +43,7 @@ class SingleSignOn
|
||||
end
|
||||
|
||||
def sign(payload)
|
||||
Digest::SHA2.hexdigest(payload + sso_secret)
|
||||
OpenSSL::HMAC.hexdigest("sha256", sso_secret, payload)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user