Security failure - This is not a secure document but has security embed parameters

Posted by dimitris mistriotis on Stack Overflow See other posts from Stack Overflow or by dimitris mistriotis
Published on 2010-03-15T17:26:04Z Indexed on 2010/03/15 17:29 UTC
Read the original article Hit count: 738

Filed under:
|

I try to create a private version and therefore I used something like this in php:

var scribd_doc = scribd.Document.getDoc( 28394353,  'xxx'); 
scribd_doc.addParam("use_ssl", true);
scribd_doc.addParam('public', false); 
scribd_doc.grantAccess("cbccf6e7-1ff7-9034-8a7c-a0c2a5b225ed", <?php echo "'" . trim($_COOKIE['PHPSESSID']) . "'" ?>, <?php echo "'" . scribd_calculate_signature($documentID = '28394353', 
    $sessionID  = trim($_COOKIE['PHPSESSID']),
    $userID     = "cbccf6e7-1ff7-9034-8a7c-a0c2a5b225ed") . "'" ?>); 
...
...

scribd_doc.write( 'embedded_flash' );

Which is the api of scribd for javascript with the addition of the signature. My result is the "Security failure - This is not a secure document but has security embed parameters" Error, which is not well documented. The document is set to private.

Any ideas?

© Stack Overflow or respective owner

Related posts about scribd

Related posts about php