mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 03:17:24 +08:00
FEATURE: change SSO to use sha256 HMAC, which is more secure
This commit is contained in:
parent
8cbff3672f
commit
890d06ac04
@ -43,7 +43,7 @@ class SingleSignOn
|
||||
end
|
||||
|
||||
def sign(payload)
|
||||
Digest::SHA2.hexdigest(payload + sso_secret)
|
||||
OpenSSL::HMAC.hexdigest("sha256", sso_secret, payload)
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user