chdemko / joomla-external-login

The External Login project allows Joomla! to manage external Authentication Servers
GNU General Public License v2.0
30 stars 19 forks source link

Bug when analyzing xml response from server #12

Closed aquamoth closed 9 years ago

aquamoth commented 10 years ago

The protocol examplifies the xml response with the xml prefix cas but xml doesn't require a specific prefix - only proper namespaces. When our CAS Server responds with the xml in the default namespace instead, caslogin.php doesn't find authenticationSuccess.

The fix is to add this row to caslogin.php, line 244, right after $xpath = new DOMXPath($dom);:

$xpath->registerNamespace('cas', 'http://www.yale.edu/tp/cas');
chdemko commented 10 years ago

thanks for the report. I will correct it for the next version

chdemko commented 9 years ago

Solve in version 3.0.0-beta1