Codoforum related discussions
doubt in sso integration

hi
please tell me sso integration clearly , documentation is somewhat twisting to me..

Reply me soon..

hi please tell me sso integration clearly , documentation is somewhat twisting to me.. Reply me soon..

We need to know what you have done up till now.

Is the SSO plugin configured properly ? Or do you want help with that ?

We need to know what you have done up till now. Is the SSO plugin configured properly ? Or do you want help with that ?

this my folder arrangement,
56a1cb8605825.png
here i'm using 2 database for forum and user login.
sso backend configuration ,

56a1cc9560d28.png

this what i done until now plz tel me a solution..

this my folder arrangement, ![56a1cb8605825.png](serve/attachment&path=56a1cb8605825.png) here i'm using 2 database for forum and user login. sso backend configuration , ![56a1cc9560d28.png](serve/attachment&path=56a1cc9560d28.png) this what i done until now plz tel me a solution..

I assume you are testing this in localhost and your website files are in the folder 'separate_login'

In that case, your sso settings are correct.

Lets move to editing sso.php file.

Have you made any changes to that file ?

How does your user system work ? When the user logs in your website, do you store his/her userid and other data in PHP SESSION ?

I assume you are testing this in localhost and your website files are in the folder 'separate_login' In that case, your sso settings are correct. Lets move to editing sso.php file. Have you made any changes to that file ? How does your user system work ? When the user logs in your website, do you store his/her userid and other data in PHP SESSION ?

Thank u so much for your reply smile
yes i'm testing in localhost.
I made a changes only in client.php [downloaded from https://github.com/evnix/codoforum-sso] ,on documentation of sso they told only to edit client.php file.

Now, you only have to edit and upload the file client.php and sso.php to your server(website) but do not edit sso.php.

Changes made in client.php

$settings = array(

  "client_id" => 'myclientid',
  "secret" => 'mysecret',
  "timeout" => 6000  
);
if (USER_IS_LOGGED_IN) {

    $account['uid'] = $_SESSION['login_userid']; //Your logged in user's userid
    $account['name'] = $_SESSION['login_username']; //Your logged in user's username
    $account['mail'] = $_SESSION['login_email']; //Your logged in user's email id
    $account['avatar'] = ''; //not used as of now
}
Thank u so much for your reply :) yes i'm testing in localhost. I made a changes only in client.php [downloaded from https://github.com/evnix/codoforum-sso] ,on documentation of sso they told only to edit client.php file. > Now, you only have to edit and upload the file client.php and sso.php to your server(website) but do not edit sso.php. Changes made in client.php ```` $settings = array( "client_id" => 'myclientid', "secret" => 'mysecret', "timeout" => 6000 ); ```` ```` if (USER_IS_LOGGED_IN) { $account['uid'] = $_SESSION['login_userid']; //Your logged in user's userid $account['name'] = $_SESSION['login_username']; //Your logged in user's username $account['mail'] = $_SESSION['login_email']; //Your logged in user's email id $account['avatar'] = ''; //not used as of now } ````
edited Jan 25 '16 at 9:50 am

You need to edit this block

if (isset($_SESSION['login_userid'])) {

    $account['uid'] = $_SESSION['login_userid']; //Your logged in user's userid
    $account['name'] = $_SESSION['login_username']; //Your logged in user's username
    $account['mail'] = $_SESSION['login_email']; //Your logged in user's email id
    $account['avatar'] = ''; //not used as of now
}
You need to edit this block ``` if (isset($_SESSION['login_userid'])) { $account['uid'] = $_SESSION['login_userid']; //Your logged in user's userid $account['name'] = $_SESSION['login_username']; //Your logged in user's username $account['mail'] = $_SESSION['login_email']; //Your logged in user's email id $account['avatar'] = ''; //not used as of now } ```

Already i edited that block into my session variable.
if its wrong, tel me what i want to do?

Already i edited that block into my session variable. if its wrong, tel me what i want to do?

For my login page , i used different database whether its right.

For my login page , i used different database whether its right.

Already i edited that block into my session variable.
if its wrong, tel me what i want to do?

For my login page , i used different database whether its right.

please reply me soon...
smile

> Already i edited that block into my session variable. if its wrong, tel me what i want to do? > For my login page , i used different database whether its right. please reply me soon... (:|
edited Jan 28 '16 at 6:29 am

Can we connect on teamviewer, we will help you with your problem.

Can we connect on teamviewer, we will help you with your problem.
Necessity is the mother of all inventions!

We can have a session on 7th of February, just email us your teamviewer id and password and the time when you can be online.

We can have a session on 7th of February, just email us your teamviewer id and password and the time when you can be online.
Necessity is the mother of all inventions!
edited Feb 2 '16 at 9:13 am
237
12
3
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