Redirectless SSO

  • Reuben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago - 14 years 10 months ago #1 by Reuben
Redirectless SSO was created by Reuben
Hi, I'm unable to get SSO to work if "Redirectless SSO" is turned ON.

SSO works fine if I turn it off but that is not an option because it interferes with the registration process when purchasing a course via Tienda or Virtuemart, which is of course why this option exists.

I have set the connection method to cURL in both Joomla and Moodle and they both share the same domain ie.
Joomla: www.nakedelearning.com/home
Moodle: www.nakedelearning.com/audio

Note: I have actually have them configured with http:// before the address in both

Thanks
Reuben
Last edit: 14 years 10 months ago by Reuben.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #2 by Chris
Replied by Chris on topic Re: Redirectless SSO
What error messages do you get ? What behaviour is present when it is switched on.

Please Log in or Create an account to join the conversation.

  • Reuben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #3 by Reuben
Replied by Reuben on topic Re: Redirectless SSO
I get no error messages and the Joomdle system check passes fine.

However when redirectless SSO is on, it simply doesn't login to Moodle as well as Joomla, they seem to be independent. It creates accounts fine and you can manually login to Moodle.
Cheers

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #4 by sjhendee
Replied by sjhendee on topic Re: Redirectless SSO
Mine seems to be the same issue, curious for this resolution. W/O SSO I can get the login on both Joomla and Moodle, with SSO only Joomla.


www.joomdle.com/en/forum/r05-support/5171-sso-and-virtuemart

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Re: Redirectless SSO
Hi all.

I just re-tested locally, and it is working fine for me. Which Moodle versions are you using?

Only thing I can think of is the joomla temp path, which needs to be set up correctly for this to work....

Please Log in or Create an account to join the conversation.

  • Reuben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #6 by Reuben
Replied by Reuben on topic Re: Redirectless SSO
Hi, my Moodle version is:
Moodle 2.0.3+ (Build: 20110511)
and Joomla version:
1.5.23
Joomdle:
0.51

Do you mean the "tmp" folder inside the main joomla root folder? I have no problem installing other extensions etc if that makes a difference, ie virtuemart and tienda.
Cheers

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Re: Redirectless SSO
What I meant is that you have a correct path set in joomla config. If you can install extensions, I guess it is fine.

If you know PHP you can try to do some debugging, in the log_into_moodle() function, in plugins/user/joomdlehooks.php.
There it reads the cookie from Moodle and sets it in the client.

Please Log in or Create an account to join the conversation.

  • Reuben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #8 by Reuben
Replied by Reuben on topic Re: Redirectless SSO
Unfortunately I'm not the greatest at debugging php but I'm willing to learn if somebody wants to get me started on that one. I'm pretty familiar with fireBUG so would firePHP be a good start?
Is there anything in particular I would be looking for?

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #9 by Antonio Durán
Replied by Antonio Durán on topic Re: Redirectless SSO
Hi.

I would just edit the code and add some output, to see what the variables have.

So, for example, I would start:
....
$file = $moodle_url. "/auth/joomdle/land.php?username=$username&token=$token&use_wrapper=0&create_user=1&wantsurl=$login_url";
//debug
echo $file;
exit ();
//debug
$ch = curl_init();
...

And then logging in. If everything seems to be fine, you would remove this debug, and do the same for other vars ($temppath, $file, ...)

Please Log in or Create an account to join the conversation.

  • Reuben
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago - 14 years 10 months ago #10 by Reuben
Replied by Reuben on topic Re: Redirectless SSO
OK I tried that, and it gives me a large string like so:
Code:
http://www.nakedelearning.com/audio/auth/joomdle/land.php?username=testy1&token=bee78d71f8dfd4f816995df749a56046&use_wrapper=0&create_user=1&wantsurl=http://www.nakedelearning.com/audio

If I then copy and paste that into another browser window the login into moodle works. So does this mean somehow that the browser is not "activating" that link?
Last edit: 14 years 10 months ago by Reuben.

Please Log in or Create an account to join the conversation.