We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8351de9 commit b050495Copy full SHA for b050495
lib/omniauth/strategies/salesforce.rb
@@ -33,7 +33,7 @@ def request_phase
33
34
def auth_hash
35
signed_value = access_token.params['id'] + access_token.params['issued_at']
36
- raw_expected_signature = OpenSSL::HMAC.digest('sha256', options.client_secret, signed_value)
+ raw_expected_signature = OpenSSL::HMAC.digest('sha256', options.client_secret.to_s, signed_value)
37
expected_signature = Base64.strict_encode64 raw_expected_signature
38
signature = access_token.params['signature']
39
fail! "Salesforce user id did not match signature!" unless signature == expected_signature
0 commit comments