Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Deleted (with backup) cache folder and restored; can't log to my Forum with Invalid Signature error

Following this problem that I also have -->
I deleted my cache folder (with backup on my computer) then I restored it back to my server but I can't log in using single sign on as connection method, I have tested all my code and everything returns me what I need, but when js connect and js auto connect runs on my main page it gives me** Invalid Signature**

I checked my client ID and secret key on my js connect settings and everything is correct comparing with my code,
What could have changed when I deleted the cache folder and restore back ?

I share with you my code

    //require_once dirname(__FILE__).'/functions.jsconnect.php';

    // 1. Get your client ID and secret here. These must match those in your jsConnect settings.
    $clientID = "xxx";
    $secret = "xxx";

    // 2. Grab the current user from your session management system or database here.
    $signedIn = true; // this is just a placeholder


    // 3. Fill in the user information in a way that Vanilla can understand.
    $user = array();

    if ($signedIn) {
    $cliente = new nusoap_client("");
    $cookie_name = "IDUserPortal";
    //$cookie_value = "Value"; 
    setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "");
    $cookie = $_COOKIE[$cookie_name];
    $usuario = $cookie;
    $cveapp = "mapa_mexico_2015";
    $espacio = ' ';
    $parametros = array ('pVusuarioenc'=>$usuario,'cveapp'=>$cveapp);
    $respuesta = $cliente->call("validausuario",$parametros);
    $user['uniqueid'] = $respuesta['pvatributo1Out'];
    $user['name'] = $respuesta['pvatributo3Out'].$espacio.$respuesta['pvatributo4Out'];  
    $user['email'] = $respuesta['pvatributo6Out'];

    // 4. Generate the jsConnect string.

    // This should be true unless you are testing. 
    // You can also use a hash name like md5, sha1 etc which must be the name as the connection settings in Vanilla.
    $secure = 'sha1'; 
    WriteJsConnect($user, $_GET, $clientID, $secret, $secure);
    JsSSOString($user, $clientID, $secret);


Sign In or Register to comment.