Php – 406 “Not Acceptable” error when using JanRain OpenID Library with Google

apachejanrainopenidPHP

I am using the latest Janrain openid library example and the discovery process seems to work well with Yahoo, myopenid.com and others…

But I am stuck with Google endpoint (https semicolon //www.google.com/accounts/o8/id). Consumer.php just returns a 406 apache error, before I am redirected to google's page.

All my installation is available here :
http://www.coplango.com/vendor/openid/examples/

  • Click on consumer to try the consumer example, but discovery.php fails the same way,proving it happens during discovery…
  • You can also check detect.php to check my installation – The HTTP fetching test fails with a 503 because it tries to reach an address which returns a 503. Rest is fine.

I supposed it was down to php-yadis specifying Accept: application/xrds+xml header but I checked the code and other types are also accepted such text/html and application/xhtml+xml.

Anyone came accross this?

Any clue?

Thank you very much!

Best Answer

Ok,

I have investigated further and it seems to be down to my provider, who returns a 406 error if any string containing the death word "/id" is passed as GET parameter. Took me days to figure out it was not down to openid !!

For info I am using PlanetHoster, if anyone else ever comes accross this. I have sent them a ticket request and waiting for their answer.

Related Topic