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.
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?
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 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
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-ssoDownload 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?
Show the current client.php file
and a pic of the sso plugin settings in codoforum backend
this is backend

and this is client.php file

what is my mistake?
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?
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.