Skip to content

Commit b050495

Browse files
committed
Fix for can't convert Bignum into String
1 parent 8351de9 commit b050495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/omniauth/strategies/salesforce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def request_phase
3333

3434
def auth_hash
3535
signed_value = access_token.params['id'] + access_token.params['issued_at']
36-
raw_expected_signature = OpenSSL::HMAC.digest('sha256', options.client_secret, signed_value)
36+
raw_expected_signature = OpenSSL::HMAC.digest('sha256', options.client_secret.to_s, signed_value)
3737
expected_signature = Base64.strict_encode64 raw_expected_signature
3838
signature = access_token.params['signature']
3939
fail! "Salesforce user id did not match signature!" unless signature == expected_signature

0 commit comments

Comments
 (0)