6
7
8
9
10
11
12
13
14
15
|
# File 'lib/freeclimb/utils/request_verifier.rb', line 6
def verify_request_signature(request_body, , signing_secret, tolerance=DEFAULT_TOLERANCE)
request_verifier_object = Freeclimb::RequestVerifier.new()
request_verifier_object.instance_eval{ check_request_body(request_body) }
request_verifier_object.instance_eval{ () }
request_verifier_object.instance_eval{ check_signing_secret(signing_secret) }
request_verifier_object.instance_eval{ check_tolerance(tolerance) }
info = Freeclimb::SignatureInformation.new()
request_verifier_object.instance_eval{ verify_tolerance(info, tolerance) }
request_verifier_object.instance_eval{ verify_signature(info, request_body, signing_secret)}
end
|