Redirectless SSO

More
14 years 10 months ago #11 by Antonio Durán
Replied by Antonio Durán on topic Re: Redirectless SSO
That means that until that point eveything is fine (which I expected).

You will need to go down in the code, echoing any variables to see what is failing.

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 #12 by Reuben
Replied by Reuben on topic Re: Redirectless SSO
Ok thanks, I tried several more variables but I'm not sure what I would be looking for.

$temppath shows me the tmp folder which is the absolute path on the server eg: /home/public_html/joomla/tmp.

I tried $ch, $moodle_url, $token etc.

One referenced a random .txt file in the tmp directory which I could not see using ftp, presumably it gets deleted straight away.

Any ideas as to what exactly could be wrong?

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

More
14 years 10 months ago #13 by Antonio Durán
Replied by Antonio Durán on topic Re: Redirectless SSO
You could try echoing the contents of the random.txt file to see if it saving the cookie...

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 #14 by Reuben
Replied by Reuben on topic Re: Redirectless SSO
OK, so if I use your echo trick directly after the following I get the location of the text file.

$file = $temppath . "/" . JUserHelper::genRandomPassword() . ".txt";
//debug
echo $file;
exit ();
//debug

eg. in my case it prints: /home/nakede5/public_html/home/tmp/Eab558g5.txt

How do I get it to show me the contents of that file? Remember I'm not exactly a whizz at PHP :)
Cheers

PS. I also just discovered something that may be relevant, if I go to the course page from within Joomdle, and click enroll in course, it takes you to a login page. if you login and you have already enrolled, you get the option "go to course". Upon clicking this button it will log you in to Moodle and display the course in a wrapper.
Last edit: 14 years 10 months ago by Reuben. Reason: addition

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

  • Vijay Ravi Adyanthaya
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #15 by Vijay Ravi Adyanthaya
Replied by Vijay Ravi Adyanthaya on topic Re: Redirectless SSO
Antonio,
we are facing the same issue , following are the details:

we have setup the integration in 2 environment , with the same code base the code is working in one of the environment , following is the details .
1) Apache version is 2.2
2) Php version is 3.3.5
4) Joomla - 1.5.23
5) Moodle - 1.9.11

Com Parameters as follows:
MOODLE_URL=http://10.10.20.11/moodle4

moodle_version=19

auth_token=

connection_method=curl

redirectless_sso=1

auto_create_users=1

auto_delete_users=1

auto_login_users=0

linkstarget=new

scrolling=no

width=100%

height=1000

autoheight=1

transparency=0

default_itemid=

joomdle_itemid=

shop_itemid=

show_topìcs_link=1

show_grading_system_link=0

show_teachers_link=0

show_goto_link=1

show_enrol_link=1

show_applicate_link=0

show_paypal_button=0

show_detail_category=1

show_detail_summary=1

show_detail_language=0

show_detail_startdate=1

show_detail_enroldates=1

show_detail_enrolperiod=1

show_detail_topicsnumber=1

show_detail_cost=1

show_detail_application_motivation=no

show_detail_application_experience=no

topics_show_numbers=1

coursecategory_show_category_info=1

nocourses_text=User Not Registered in any Course.

shop_integration=0

courses_category=0

buy_for_children=0

enrol_email_subject=Welcome to COURSE_NAME

enrol_email_text=To enter the course, go to: COURSE_URL

additional_data_source=none

use_profiletypes=0

applications_max=

use_guarantees_integration=0


Issue Details :

the data exchange on the view and modules is working properly.issue is at all the links where we generate the landing url.

Daignosis:
the Token , Username, Wants url Wrapper value are received properly in land.php.

following method call returns nothing:
$logged = auth_plugin_joomdle::call_method ("confirmJoomlaSession", $username, $token);

further we checked the return value in Joomla (in joomla the function return r which has a value of 1 and passed back as xmlrpcboolean back.

i.e. the xmlrpc communication is failing.

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

More
14 years 10 months ago #16 by Antonio Durán
Replied by Antonio Durán on topic Re: Redirectless SSO
sabretoothnz:

To view file. you can do:
echo file_get_contents ($file);

about your ps: this is normal, as it is normal login procedure (instead of redirect-less that the plugin does)


vadyanthaya: please open a new thread, as you may seem to have problems in your system check.

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

More
14 years 10 months ago #17 by sjhendee
Replied by sjhendee on topic Re: Redirectless SSO
Any luck on this?

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