csev / webauto

This is my automatic grading program for web sites
Apache License 2.0
3 stars 11 forks source link

OAuth throwing 'Invalid signature' errors on launch #4

Open robtom opened 10 years ago

robtom commented 10 years ago

When launching any tool, OAuth is yielding errors like the following:

Array
(
    [0] => Invalid signature ours= ZV1cNMVnbYmuSIDVUPAtVfo6PV0= yours=cvh+G64knmbd0UneJdMXBHDIs9k=
    [1] => POST&http%3A%2F%2Flocalhost%2Fcsev%2Fwebauto%2Flti.php&PHPSESSID%3Did6hpf2sr3fs152at2vtedu2c0%26context_id%3D456434513%26context_label%3DSI106%26context_title%3DIntroduction%2520to%2520Programming%26custom_assn%3Dmod%252Frps%252Findex.php%26custom_due%3D2016-12-12%252010%253A00%253A00.5%26custom_penalty_cost%3D0.2%26custom_penalty_time%3D86400%26custom_timezone%3DPacific%252FHonolulu%26ext_submit%3DFinish%2520Launch%26launch_presentation_css_url%3Dhttp%253A%252F%252Flocalhost%252Fcsev%252Fwebauto%252Flms.css%26lis_outcome_service_url%3Dhttp%253A%252F%252Flocalhost%252Fcsev%252Fwebauto%252Fcommon%252Ftool_consumer_outcome.php%253Fb64%253DMTIzNDU6OjpzZWNyZXQ%253D%26lis_person_contact_email_primary%3Dstudent%2540ischool.edu%26lis_person_name_family%3DStudent%26lis_person_name_full%3DSue%2520Student%26lis_person_name_given%3DSue%26lis_person_sourcedid%3Dischool.edu%253Astudent%26lis_result_sourcedid%3Dfeb-123-456-2929%253A%253A28883%26lti_message_type%3Dbasic-lti-launch-request%26lti_version%3DLTI-1p0%26oauth_callback%3Dabout%253Ablank%26oauth_consumer_key%3D12345%26oauth_nonce%3Dd29ce42497b3000d6c932881607445cd%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1386902416%26oauth_version%3D1.0%26resource_link_description%3DA%2520weekly%2520blog.%26resource_link_id%3D120988f929-274612%26resource_link_title%3DWeekly%2520Blog%26roles%3DLearner%26tool_consumer_info_product_family_code%3Dims%26tool_consumer_info_version%3D1.1%26tool_consumer_instance_description%3DUniversity%2520of%2520Information%26tool_consumer_instance_guid%3Dlmsng.ischool.edu%26user_id%3D998928898
)
robtom commented 10 years ago

Fixed by https://github.com/csev/webauto/commit/7b128c0e1b5aff59f75b1f93fe479a2dd397eb51, thanks!