Skip to content

Instantly share code, notes, and snippets.

@edbond
Created November 23, 2009 13:41
Show Gist options
  • Save edbond/241074 to your computer and use it in GitHub Desktop.
Save edbond/241074 to your computer and use it in GitHub Desktop.
Scribd
I am using rscribd (latest) to store and display private documents. I have no
problems displaying private docs but I need more security.
I added :secure_document => 1 to upload options hash and use
following code to display it:
var scribd_doc = scribd.Document.getDoc( doc_id, doc_key );
scribd_doc.addParam("use_ssl", true);
scribd_doc.grantAccess('4', '#{session[:session_id]}', signature);
scribd_doc.addParam( 'jsapi_version', 1 );
scribd_doc.write( 'embedded_flash' );
Security failure - This is not a secure
document but has security embed parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment