How To / General
Login/logout through Moodle does not login/logout user from Joomla
- Web Buster UK Ltd
-
Topic Author
- Offline
- Premium Member
-
Less
More
7 months 3 days ago - 7 months 3 days ago #1
by Web Buster UK Ltd
Login/logout through Moodle does not login/logout user from Joomla was created by Web Buster UK Ltd
Hi Antonio,
Not sure if this is just our issue. We are currently using Joomla 5.3.3 and Moodle 5.0.2. System check is all green.
When a user login through Joomla, it logs the user into Moodle -> this part is working.
When a user logout from Joomla, it logs the user out of Moodle -> this part is working.
When a user login through Moodle, it doesn't log the user into Joomla -> not working.
When a user logout from Moodle, it doesn't log the user out of Joomla -> not working.
Redirect-less SSO and Single log out is ticked on both Joomla and Moodle.
Connection method cURL, protocol REST for both Joomla and Moodle.
Looking at the cookies, it seems to not set the joomla_user_state cookies after logging in through Moodle.
What else can we do to check or debug?
Not sure if this is just our issue. We are currently using Joomla 5.3.3 and Moodle 5.0.2. System check is all green.
When a user login through Joomla, it logs the user into Moodle -> this part is working.
When a user logout from Joomla, it logs the user out of Moodle -> this part is working.
When a user login through Moodle, it doesn't log the user into Joomla -> not working.
When a user logout from Moodle, it doesn't log the user out of Joomla -> not working.
Redirect-less SSO and Single log out is ticked on both Joomla and Moodle.
Connection method cURL, protocol REST for both Joomla and Moodle.
Looking at the cookies, it seems to not set the joomla_user_state cookies after logging in through Moodle.
What else can we do to check or debug?
Last edit: 7 months 3 days ago by Web Buster UK Ltd.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
7 months 2 days ago #2
by Antonio Durán
Replied by Antonio Durán on topic Login/logout through Moodle does not login/logout user from Joomla
Hi.
I don't know what may be happening at your site...I just tested both SSO and logout from Moodle to Joomla in a Moodle 5 setup, and it all worked fine.
To debug, you would start at user_authenticated_hook() in /var/www/j4/moodle/auth/joomdle/auth.php
You can also try disabling redirect-less SSO in Moodle, to see if that changes anything (that will still perform SSO, but doing a redirection instead of using curl to fetch the cookies)
I don't know what may be happening at your site...I just tested both SSO and logout from Moodle to Joomla in a Moodle 5 setup, and it all worked fine.
To debug, you would start at user_authenticated_hook() in /var/www/j4/moodle/auth/joomdle/auth.php
You can also try disabling redirect-less SSO in Moodle, to see if that changes anything (that will still perform SSO, but doing a redirection instead of using curl to fetch the cookies)
Please Log in or Create an account to join the conversation.
- Web Buster UK Ltd
-
Topic Author
- Offline
- Premium Member
-
7 months 1 day ago #3
by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Login/logout through Moodle does not login/logout user from Joomla
Thanks, disabling redirect-less SSO in Moodle works. Will just use it that way for now until we figure out what's wrong. Thanks!
Please Log in or Create an account to join the conversation.