Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

jsConnect auto signout problem

This discussion is related to the Vanilla jsConnect Auto SignIn addon.
Dennis43Dennis43 New
edited February 2015 in Vanilla 2.0 - 2.2

Im trying to use the auto signout code but it doesnt working. It keeps me login in the main (Laravel) site so it keeps auto re-login in the forum too

In the config.php im having
$Configuration['Garden']['Authenticator']['SignOutUrl'] = ''; /Its the logout url of the main site

In the boostrap.before.php
<?php if (!defined('APPLICATION')) exit();
function SignOutUrl($Target = '') {
$SignOutUrl = C('Garden.Authenticator.SignOutUrl','/signout/{Session_TransientKey}?Target=%2$s');
$SignOutUrl = FormatString($SignOutUrl,array('Session_TransientKey'=>Gdn::Session()->TransientKey()));
$SignOutUrl = sprintf($SignOutUrl,($Target ? '&Target='.urlencode($Target) : ''));
return $SignOutUrl;

Any ideas how to fix this?

Thanks in advance :)



  • do you have a link?

    grep is your friend.

  • Dennis43Dennis43 New
    edited February 2015

    First thanks x00 for trying to help =)

    Let me explain you better what is going on...

    Im having a laravel site and i used for implementing the SSO. I did the JS Connect test and i got the respond
    test({"email":"","name":"Den","photourl":"","roles":"","uniqueid":1,"client_id":"8737398317","signature":"d37a5dd65f0f409f76433f3963b73d12"}) //putted random id/sig so everything seems ok.

    Today, i noticed that the problem starts when i try to use JSConnect without the auto signin and im getting a response "Whoops! error"...but i dont know what is the error exactly (i have no idea how to debug it)..If i use also your plugin its getting logged in automatically with no errors but i cant manage to forward logout url (its redirecting me to the url and not the main site url).

    Anyway, im sending you the forum url with PM since i dont want to make the url public.

    Thanks once again

  • I don't think you are using my plugin.

    grep is your friend.

  • Try once again, i ve disabled it before to do some tests

  • boostrap.before.php should be bootstrap.before.php

    grep is your friend.

  • Dennis43Dennis43 New
    edited February 2015

    Interesting... ahhahaha... Ive fixed it and now its forwarding to the main logout url but it doesnt passing through the logout url of the VF so im still logged in the forum...

    In the config i have
    $Configuration['Garden']['Authenticator']['SignOutUrl'] ='';
    I tried also the{Session_TransientKey}?Target= but no luck (im stuck in a loop)

    Any ideas why?


  • Dennis43Dennis43 New
    edited February 2015 more mistake. I changed to

    $Configuration['Garden']['Authenticator']['SignOutUrl'] = '/entry/signout/{Session_TransientKey}?Target='; and it working beautifully!!

    Thanks once again for your help x00 :)

  • Hello x00, is there any lead regarding wordpress embeded?

    $Configuration['Garden']['Authenticator']['SignOutUrl'] = '/entry/signout/{Session_TransientKey}?Target=';

    but when I log out from wordpress, the forum still there, and it cannot logged out
    how can I solve this?

Sign In or Register to comment.