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-2.2.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-2.1.2 lib/cloudinary/cloudinary_controller.rb
cloudinary-2.0.2 lib/cloudinary/cloudinary_controller.rb
cloudinary-2.0.1 lib/cloudinary/cloudinary_controller.rb
cloudinary-2.0.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.29.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.28.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.27.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.26.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.25.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.24.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.23.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.22.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.21.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.20.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.19.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.18.1 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.18.0 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.17.1 lib/cloudinary/cloudinary_controller.rb
cloudinary-1.17.0 lib/cloudinary/cloudinary_controller.rb