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
danytothetowers
New
Following this problem that I also have --> https://vanillaforums.org/discussion/comment/242228#Comment_242228
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
<?php //require_once dirname(__FILE__).'/functions.jsconnect.php'; require('functions.jsconnect.php'); require_once("lib/nusoap.php"); //require('webservice.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 // YOUR CODE HERE. // 3. Fill in the user information in a way that Vanilla can understand. $user = array(); if ($signedIn) { // CHANGE THESE FOUR LINES. $cliente = new nusoap_client("https://oet.itesm.mx/portalOETWS/PortalOETWebService?wsdl"); $cookie_name = "IDUserPortal"; //$cookie_value = "Value"; setcookie($cookie_name, $cookie_value, time() + (86400 * 30), "https://oet.itesm.mx/portal/page/portal/OET/Publica?p_iPortal=3"); $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);
Tagged:
0
Comments
An admin here?
I just solved this, so please can anyone delete this topic?
I accept any suggestions in my other problem
https://vanillaforums.org/discussion/comment/242228#Comment_242228
THANKS!
Why did you delete your cache folder ?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Because I thought the ini files were there
And they are there, but they are not the only files in there… you only delete the .ini files not the folder…
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Could it be another way to solve my problem? I did what you said and I got the same problem.. "Invalid signature"
cc @hgtonight
I have deleted all the ini files you told me and the problem still active
The .ini files are just maps. You can delete them safely. They get regenerated automatically. Moving them is not going to solve the issue. Deleting them helps solve 500 type server errors sometimes. That was the problem you had in the other discussion you started.
Invalid signature, means the key is wrong and it not being recognized. Please read this and follow the directions exactly.
http://docs.vanillaforums.com/help/sso/jsconnect/seamless/
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Well, this is getting so stressful..
I decided to follow your suggestion of delete the ini files (not moving to another folder) and my problem still on.
Any other suggestion is really accepted
Keep searching