Ajax breaks when it gets the return value from login when using the OpenID module in core.

OpenID returns a HTML form with JS at the end that is meant to autopost it to the OpenID provider site. Ajax seems to expect JSON and so of course it fails with "unknown error" when it gets the HTML.

I don't know if a plugin could solve this, but if so I guess that would be the ideal solution. As a workaround, it would be nice just to have it recognize that it's being given back an auto-posting form and pass it through unmodified.

CommentFileSizeAuthor
#1 openid-validHTML.inc_.patch1.5 KBGreenReaper
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GreenReaper’s picture

I also tried applying this patch to make the OpenID return value valid HTML, and it would probably be worth testing any fix with that modification as well since it will be used on 7. I have attached a backported patch for openid.inc in 6.19.