Codoforum related discussions
sso integration

Hi,

We know that you are trying to integrate Joomla plugin with codoforum.
But, we are confused with what you have done uptil now since you have replied to many other topics.

Can you post all your steps that you have done until now ?

We will then guide you with the integration.

Hi, We know that you are trying to integrate Joomla plugin with codoforum. But, we are confused with what you have done uptil now since you have replied to many other topics. Can you post all your steps that you have done until now ? We will then guide you with the integration.

Hi
I turn on plagin sso in backend of codoforum, then copy file sso on my site and configured file client.php.

Now everyone who visit my codoforum, codo see as USER which codo create avtomaticaly. And doesnt matter login people on site or not.

lets try
site: sexsector.info
login adesh
pass: 1234
forum url: http://sexsector.info/interactive/

Hi I turn on plagin sso in backend of codoforum, then copy file sso on my site and configured file client.php. Now everyone who visit my codoforum, codo see as USER which codo create avtomaticaly. And doesnt matter login people on site or not. lets try site: sexsector.info login adesh pass: 1234 forum url: http://sexsector.info/interactive/

Hi,Yes I can

<?php

/**

  • You do not have to edit sso.php file
  • This file/code should get executed when Codoforum sends a request
  • to the path <SSO Get User Path> as defined in SSO plugin settings
  • in Codoforum backend
  • */

require 'sso.php';

/**

  • The SSO client id and secret MUST be same as that set in the Codoforum
  • SSO plugin settings
    */
    $settings = array(

    "client_id" => 'from codoforum backend',
    "secret" => 'from codoforum backend',
    "timeout" => 6000
    );

$sso = new codoforum_sso($settings);

$account = array();

/**

  • Here comes your logic to check if the user is logged in or not.
  • A simple example would be using PHP SESSION
    */
    if (USER_IS_LOGGED_IN) {

    $account['uid'] = USERID; //Your logged in user's userid
    $account['name'] = USERNAME; //Your logged in user's username
    $account['mail'] = EMAILID; //Your logged in user's email id
    $account['avatar'] = ''; //not used as of now
    }

$sso->output_jsonp($account); //output above as JSON back to Codoforum
exit();>

Hi,Yes I can &amp;gt; &amp;lt;?php /** * * You do not have to edit sso.php file * * This file/code should get executed when Codoforum sends a request * to the path &amp;lt;SSO Get User Path&amp;gt; as defined in SSO plugin settings * in Codoforum backend * * */ require &#039;sso.php&#039;; /** * * The SSO client id and secret MUST be same as that set in the Codoforum * SSO plugin settings */ $settings = array( &quot;client_id&quot; =&amp;gt; &#039;from codoforum backend&#039;, &quot;secret&quot; =&amp;gt; &#039;from codoforum backend&#039;, &quot;timeout&quot; =&amp;gt; 6000 ); $sso = new codoforum_sso($settings); $account = array(); /** * * Here comes your logic to check if the user is logged in or not. * A simple example would be using PHP SESSION */ if (USER_IS_LOGGED_IN) { $account[&#039;uid&#039;] = USERID; //Your logged in user&#039;s userid $account[&#039;name&#039;] = USERNAME; //Your logged in user&#039;s username $account[&#039;mail&#039;] = EMAILID; //Your logged in user&#039;s email id $account[&#039;avatar&#039;] = &#039;&#039;; //not used as of now } $sso-&amp;gt;output_jsonp($account); //output above as JSON back to Codoforum exit();&amp;gt;

Hi,

Sorry for the late reply.

"client_id" => 'from codoforum backend',
"secret" => 'from codoforum backend',

You did not enter the client_id and secret yet ?

if (USER_IS_LOGGED_IN) {

$account['uid'] = USERID; //Your logged in user's userid
$account['name'] = USERNAME; //Your logged in user's username
$account['mail'] = EMAILID; //Your logged in user's email id
$account['avatar'] = ''; //not used as of now
}

You need to edit this part too.

Do you use any CMS or is your website custom built ?

Hi, Sorry for the late reply. ``` &quot;client_id&quot; =&amp;gt; &#039;from codoforum backend&#039;, &quot;secret&quot; =&amp;gt; &#039;from codoforum backend&#039;, ``` You did not enter the client_id and secret yet ? ``` if (USER_IS_LOGGED_IN) { $account[&#039;uid&#039;] = USERID; //Your logged in user&#039;s userid $account[&#039;name&#039;] = USERNAME; //Your logged in user&#039;s username $account[&#039;mail&#039;] = EMAILID; //Your logged in user&#039;s email id $account[&#039;avatar&#039;] = &#039;&#039;; //not used as of now } ``` You need to edit this part too. Do you use any CMS or is your website custom built ?

client_id and secret I enter in.
But I dont know how I must edit another part about you talk. I use joomla 3.4.1

client_id and secret I enter in. But I dont know how I must edit another part about you talk. I use joomla 3.4.1

will it works with php 5.6?
client.php and sso.php I mast delete from server and install this component?

what I must insert in the field SSO Get User Path in backend of codoforum if I install this component?

will it works with php 5.6? client.php and sso.php I mast delete from server and install this component? what I must insert in the field SSO Get User Path in backend of codoforum if I install this component?
edited Apr 22 '15 at 7:30 pm

component install without any error. But nothing change. Still sso dont work. Forum dont see which user are registered on site

component install without any error. But nothing change. Still sso dont work. Forum dont see which user are registered on site

Please help us with this... I need to see an example of the plugin configuration!

Please help us with this... I need to see an example of the plugin configuration!

Happy Hunting...

this is looks like joke? support is dead but codoforum is online? for what it is online?

this is looks like joke? support is dead but codoforum is online? for what it is online?
edited May 2 '15 at 4:38 pm

Hi,

We are sorry... The support has been dead the past 1 week.

We were really busy with a launch of a new product.

We are now back again.

Did you install the component given in this link:
https://github.com/evnix/joomla-codoforum-sso

After, installation, you need to copy the client id and secret that you have set in the codoforum backend->sso to the joomla components->sso

Hi, We are sorry... The support has been dead the past 1 week. We were really busy with a launch of a new product. We are now back again. Did you install the component given in this link: https://github.com/evnix/joomla-codoforum-sso After, installation, you need to copy the client id and secret that you have set in the codoforum backend-&amp;gt;sso to the joomla components-&amp;gt;sso

Yes I am. Everything do as you say. But I dont uderstand what set in the field SSO Get User Path: in backend of codo after inslall this component.

Yes I am. Everything do as you say. But I dont uderstand what set in the field SSO Get User Path: in backend of codo after inslall this component.

if I take this component I must not copy sso.php and client.php on my site. Am I right? Just install component and set secret and client id. But what in this case I must set in backend of codoforum in field "SSO Get User Path:"? ?

if I take this component I must not copy sso.php and client.php on my site. Am I right? Just install component and set secret and client id. But what in this case I must set in backend of codoforum in field &quot;SSO Get User Path:&quot;? ?
edited May 2 '15 at 8:05 pm
12
576
25
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