How to validate signed identifier from IOS in rails backend
Hi,
we want to use safe mobile upload with a server side pre-generated signature. In the IOS SDK it is mentioned that a "signedIdentifier" can be generated with
NSString *signedIdentifier = [cloudinary signedPreloadedImage:uploadResponse];
How do I validate this response string in my rails backend? I couldn't find any documentation. The closest I found was a blog post where someone recreated the signature from all params and than compared it to the one returned by the client. He didn't use the aforementioned signedIdentifier.
-
Please note that you can also upload images without the need of generating a signature. For more information about unsigned uploads (which includes iOS sample code):
http://cloudinary.com/blog/direct_upload_made_easy_from_browser_or_mobile_app_to_the_cloudRegarding Ruby validation of signature - You can use
Cloudinary::PreloadedFile
as shown here: http://cloudinary.com/documentation/rails_image_upload#direct_upload_file_tagThe identifier sent by the iOS code is the same as the one in the jQuery direct upload example.
If you use CarrierWare, assigning the signed identifier is automatically validated.
Post is closed for comments.
Comments
2 comments