Open draffensperger opened 9 years ago
I no longer have access to a CAS server and therefore am no longer fit to maintain this project.
If you would like to volunteer to be a maintainer of this project, please let me know by opening an Issue.
This PR can't be merged ? Else wich project to use ? Thanks
@chuckbjones and @njfranck: our CAS server had a very similar issue to yours that you fix in https://github.com/dlindahl/omniauth-cas/pull/33
Our server's specific problem was that it didn't define the
xmlns:saml
namespace at all and so its request XML looked something like this:This pull request integrates the fix for namespaces not defined on the root node as well as those not defined at all. I kept the
inject_params
method mostly similar (though slightly tidied) so that the specs would pass, and it seems thatupdate_param
actually has slightly different semantics as it leavesenv
unchanged.The approach in
add_namespaces
of adding namespaces then re-parsing the XML seems to be what's needed, as per this Stack Overflow thread.@dlindahl could you take a look at this?