Plugins
SSO with auto-login plugin

Hello,
I am testing this setup on my local machine before putting it into production but I am having trouble authenticating into the Codoforum page.

I have an existing database of users and installed Codoforum into the same database. I installed the Codoforum code into a directory called forum - ran the setup and can log in successfully as an admin in order to enable the plugin.

I have these settings in the plugin:
59ee063ba512f.png

I downloaded the associated sso files (client.php and sso.php) into the main directory (LII) with the login, logout, and register pages. (Codoforum is in the "LII/forum" directory).

I renamed the default client.php to sso_client.php (so it didn't conflict with the existing webpage). I added some basic print commands to see what is happening and when I browse to the sso_client.php file, it shows this:
59ee0769f042e.png

The $settings array shows that the plugin and the client php file settings match.

The $account array shows that I am obtaining session information for the user that is logged in.

And since I don't see any errors, I assume the $sso array is successfully being passed into Codoforum

Therefore, this is where I need some guidance:

If I am logged into my existing page, am I able to just open the forum page location from a hyperlink on the main site?

If so, when I go to http://localhost/LII/forum/ am I supposed to relogin in order to have the SSO authenticate?

I know everything is installed fine because if I login to the admin control panel and then type this location: http://localhost/LII/forum/

59ee10768b715.png

It shows that I am logged in as an admin. However, when I logout, it takes me to the correct logout page that I setup in the plugin. And then if I login to my main page as a regular user, and access the same forum location: http://localhost/LII/forum/

it doesn't authenticate me.

59ee111458309.png

Any information you can provide would be helpful.

Thank you,
Scott R. Simon

Hello, I am testing this setup on my local machine before putting it into production but I am having trouble authenticating into the Codoforum page. I have an existing database of users and installed Codoforum into the same database. I installed the Codoforum code into a directory called forum - ran the setup and can log in successfully as an admin in order to enable the plugin. I have these settings in the plugin: ![59ee063ba512f.png](serve/attachment&path=59ee063ba512f.png) I downloaded the associated sso files (client.php and sso.php) into the main directory (LII) with the login, logout, and register pages. (Codoforum is in the "LII/forum" directory). I renamed the default client.php to sso_client.php (so it didn't conflict with the existing webpage). I added some basic print commands to see what is happening and when I browse to the sso_client.php file, it shows this: ![59ee0769f042e.png](serve/attachment&path=59ee0769f042e.png) The $settings array shows that the plugin and the client php file settings match. The $account array shows that I am obtaining session information for the user that is logged in. And since I don't see any errors, I assume the $sso array is successfully being passed into Codoforum Therefore, this is where I need some guidance: If I am logged into my existing page, am I able to just open the forum page location from a hyperlink on the main site? If so, when I go to http://localhost/LII/forum/ am I supposed to relogin in order to have the SSO authenticate? I know everything is installed fine because if I login to the admin control panel and then type this location: http://localhost/LII/forum/ ![59ee10768b715.png](serve/attachment&path=59ee10768b715.png) It shows that I am logged in as an admin. However, when I logout, it takes me to the correct logout page that I setup in the plugin. And then if I login to my main page as a regular user, and access the same forum location: http://localhost/LII/forum/ it doesn't authenticate me. ![59ee111458309.png](serve/attachment&path=59ee111458309.png) Any information you can provide would be helpful. Thank you, Scott R. Simon

Hi,

It is supposed to log you in automatically.
Can you check the network tab in chrome dev tools to see the response of the
request it makes to sso_client.php ?

Try reloading the forum page once

Hi, It is supposed to log you in automatically. Can you check the network tab in chrome dev tools to see the response of the request it makes to sso_client.php ? Try reloading the forum page once
Necessity is the mother of all inventions!
edited Oct 23 '17 at 6:22 pm

This definitely works as you said. Only a couple of refreshes needed this time. smile

I just uploaded it to my live site and I logged in fine.

Thanks again!

This definitely works as you said. Only a couple of refreshes needed this time. (blush) I just uploaded it to my live site and I logged in fine. Thanks again!
edited Oct 24 '17 at 4:45 am
311
2
2
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