Plugins
Single Sign On Problem
sso

I've managed to get the single-sign-on to work if I manually set the values within client.php:

$account['uid'] = 4;
$account['name'] = "John";
$account['mail'] = "here@there.com";
$account['avatar'] = ''; //not used as of now

but when I try to use anything defined elsewhere, it doesn't work, such as:

if($_SESSION['userDetails']['id']){
    $account['uid'] = $_SESSION['userDetails']['id'];
    $account['name'] = $_SESSION['userDetails']['username'];
    $account['mail'] = $_SESSION['userDetails']['email'];
    $account['avatar'] = ''; //not used as of now
}

or even just variables which I've defined in test.php called by a require statement within index.php :

    $account['uid'] = $uid;
    $account['name'] = $name;
    $account['mail'] = $email;
    $account['avatar'] = ''; //not used as of now

Any ideas?

Many Thanks,
Rob

I've managed to get the single-sign-on to work if I manually set the values within client.php: ```` $account['uid'] = 4; $account['name'] = "John"; $account['mail'] = "here@there.com"; $account['avatar'] = ''; //not used as of now ```` but when I try to use anything defined elsewhere, it doesn't work, such as: ```` if($_SESSION['userDetails']['id']){ $account['uid'] = $_SESSION['userDetails']['id']; $account['name'] = $_SESSION['userDetails']['username']; $account['mail'] = $_SESSION['userDetails']['email']; $account['avatar'] = ''; //not used as of now } ```` or even just variables which I've defined in test.php called by a require statement within index.php : ```` $account['uid'] = $uid; $account['name'] = $name; $account['mail'] = $email; $account['avatar'] = ''; //not used as of now ```` Any ideas? Many Thanks, Rob

I've sorted it.

I shouldn't have put the require statements in index.php
I've put them within client.php and it works fine now.

My fault.

I've sorted it. I shouldn't have put the require statements in index.php I've put them within client.php and it works fine now. My fault.
195
1
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft