Created
November 23, 2009 13:41
-
-
Save edbond/241074 to your computer and use it in GitHub Desktop.
Scribd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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