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

Version Path
cloudinary-1.16.1 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.16.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.15.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.14.0 lib/cloudinary/cloudinary_controller.rb