Sha256: 0456338cb7708f694734a317280cf461b1b284dfecc635d7116943dd479ae127
Contents?: true
Size: 408 Bytes
Versions: 24
Compression:
Stored size: 408 Bytes
Contents
module Cloudinary::CloudinaryController protected def valid_cloudinary_response? received_signature = request.query_parameters[:signature] calculated_signature = Cloudinary::Utils.api_sign_request( request.query_parameters.select{|key, value| [:public_id, :version].include?(key.to_sym)}, Cloudinary.config.api_secret) return received_signature == calculated_signature end end
Version data entries
24 entries across 24 versions & 1 rubygems