Codoforum related discussions
SSO integration?

Hi
how can i use sso integration plugin for connection mediawiki and codoforum?
can use this plugin?

please learn me to set this plugin

Hi how can i use sso integration plugin for connection mediawiki and codoforum? can use this plugin? please learn me to set this plugin
edited Feb 25 '16 at 9:24 pm

You will have to follow the documentation given here:

https://codoforum.com/documentation/implementing-codoforum-sso

Let us know if you need help with it.

Hi
i see that but it don't work!(also i don't know what is address in this box SSO Get User Path)
i want to have same user
for example i register in mediawiki with this username"Name" and then when user come to forum login with that name
Is it possible ?
is it possible to have same user?
if yes How? Can you test whit Mediawiki in this address(https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz) and tell me result?

>You will have to follow the documentation given here: >https://codoforum.com/documentation/implementing-codoforum-sso >Let us know if you need help with it. Hi i see that but it don't work!(also i don't know what is address in this box SSO Get User Path) i want to have same user for example i register in mediawiki with this username"Name" and then when user come to forum login with that name Is it possible ? is it possible to have same user? if yes How? Can you test whit Mediawiki in this address(https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz) and tell me result?
edited Feb 28 '16 at 3:39 am

also i don't know what is address in this box SSO Get User Path

When codoforum loads, it makes an AJAX (jsonp) request to the path given.

So, this path should point to the client.php that you download from the github repo.

eg. http://mywebsite.com/sso/client.php

for example i register in mediawiki with this username"Name" and then when user come to forum login with that name
Is it possible ?
is it possible to have same user?

The user won't be logging in from codoforum, once you setup sso, register/login/logout functions will be delegated to mediawiki.

So, there is no problem of existing users or new users.

>also i don't know what is address in this box SSO Get User Path When codoforum loads, it makes an AJAX (jsonp) request to the path given. So, this path should point to the client.php that you download from the github repo. eg. http://mywebsite.com/sso/client.php >for example i register in mediawiki with this username"Name" and then when user come to forum login with that name Is it possible ? is it possible to have same user? The user won't be logging in from codoforum, once you setup sso, register/login/logout functions will be delegated to mediawiki. So, there is no problem of existing users or new users.

When codoforum loads, it makes an AJAX (jsonp) request to the path given.

So, this path should point to the client.php that you download from the github repo.

eg. http://mywebsite.com/sso/client.php

The user won't be logging in from codoforum, once you setup sso, register/login/logout functions will be delegated to mediawiki.

i donot understand !!! for example mu user register an username" Name"
when he come to codoforum from my main site , Does he login automatic whit username"Name"? or no?
i want when user login in my website , also login to codoforum, simultaneously. is it possible?
if yes i can not how do i do!
can you learn me step to step ?

>When codoforum loads, it makes an AJAX (jsonp) request to the path given. >So, this path should point to the client.php that you download from the github repo. >eg. http://mywebsite.com/sso/client.php >The user won't be logging in from codoforum, once you setup sso, register/login/logout functions will be delegated to mediawiki. i donot understand !!! for example mu user register an username" Name" when he come to codoforum from my main site , Does he login automatic whit username"Name"? or no? i want when user login in my website , also login to codoforum, simultaneously. is it possible? if yes i can not how do i do! can you learn me step to step ?
edited Feb 28 '16 at 8:13 pm

when he come to codoforum from my main site , Does he login automatic whit username"Name"? or no?

Yes, he logs in automatically if he is loggedin in your website.

First copy those files from github repo to your website folder and set sso get user path to the file client.php

>when he come to codoforum from my main site , Does he login automatic whit username"Name"? or no? Yes, he logs in automatically if he is loggedin in your website. First copy those files from github repo to your website folder and set sso get user path to the file client.php

First copy those files from github repo to your website folder and set sso get user path to the file client.php

i don't understand! What do I download?
what file? please give me a link to download!
i do not know what to download!

i use MediaWiki for website
that i download from
https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz

>First copy those files from github repo to your website folder and set sso get user path to the file client.php i don't understand! What do I download? what file? please give me a link to download! i do not know what to download! i use MediaWiki for website that i download from https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz
edited Mar 1 '16 at 4:11 am

Its given in the documentation the link to the repo:
https://github.com/evnix/codoforum-sso

Download the two files sso.php and client.php and place them in your website folder

Its given in the documentation the link to the repo: https://github.com/evnix/codoforum-sso Download the two files sso.php and client.php and place them in your website folder

Its given in the documentation the link to the repo:
https://github.com/evnix/codoforum-sso

Download the two files sso.php and client.php and place them in your website folder

i place two files and i Edit "SSO Client ID" and "SSO Secret" in client.php
i edit just "client_id" and "secret"

But it doesn't work
when i login to my site and when i go back to codoforum i see "login" and "register" Buttom and i didn't login in codoforum

what do i do?
what is my mistake?

>Its given in the documentation the link to the repo: >https://github.com/evnix/codoforum-sso >Download the two files sso.php and client.php and place them in your website folder i place two files and i Edit "SSO Client ID" and "SSO Secret" in client.php i edit just "client_id" and "secret" But it doesn't work when i login to my site and when i go back to codoforum i see "login" and "register" Buttom and i didn't login in codoforum what do i do? what is my mistake?
edited Mar 3 '16 at 10:16 pm

Show the current client.php file

and a pic of the sso plugin settings in codoforum backend

Show the current client.php file and a pic of the sso plugin settings in codoforum backend

Show the current client.php file

and a pic of the sso plugin settings in codoforum backend

this is backend

56da947296de3.jpg


and this is client.php file

56da949ce9f6f.jpg

what is my mistake?

>Show the current client.php file >and a pic of the sso plugin settings in codoforum backend _**this is backend**_ ![56da947296de3.jpg](serve/attachment&path=56da947296de3.jpg) _ **and this is client.php file**_ ![56da949ce9f6f.jpg](serve/attachment&path=56da949ce9f6f.jpg) what is my mistake?
edited Mar 5 '16 at 8:14 am

You need to edit the below code:

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
}

In place of USER_IS_LOGGED_IN, you need to add your own condition, for eg.

If you are using SESSION to store users' current id in $_SESSION['userid']

Then you can do like

if (isset($_SESSION['userid'])) {
    $account['uid'] = $_SESSION['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
}

In place of USERNAME and EMAILID, the username and email address of current user will come, you can fetch this data from the database or use it from SESSION if available.

You need to edit the below code: ``` 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 } ``` In place of USER_IS_LOGGED_IN, you need to add your own condition, for eg. If you are using SESSION to store users' current id in $_SESSION['userid'] Then you can do like ``` if (isset($_SESSION['userid'])) { $account['uid'] = $_SESSION['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 } ``` In place of USERNAME and EMAILID, the username and email address of current user will come, you can fetch this data from the database or use it from SESSION if available.

@adesh1414127033
i can not because I do not know it
i just run mediawiki(open source software) in localhost but i do have any information about this data in mediawiki

can you test in your local host?

@adesh1414127033 i can not because I do not know it i just run mediawiki(open source software) in localhost but i do have any information about this data in mediawiki can you test in your local host?

We will install mediawiki and try

ok, i wait

thank you

>We will install mediawiki and try ok, i wait thank you
629
14
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