-
Notifications
You must be signed in to change notification settings - Fork 264
Support for internationalized domain names #78
Comments
UTF8 domain names seems to give 502 Bad Gateway always when verifying :-( |
Some more info: PHP audience: www.xn--idyry-yua.no ($_SERVER['HTTP_HOST']) |
Even more info, the login dialog displays: What email address would you like to use to sign into www.xn--idyry-yua.no? So the ASCII and UTF-8 version of the domain name seems to be mixed up. |
This issue is browser dependent: FF: Chrome: IE9: Verification of the assertion was done with the ASCII version. |
Hi! To help us better focus, I'm "closing" all issues that have been open for more than six months. These have been tagged "cleanup-2014" so that we can go back and review them in the future. For more information, check out this thread: http://thread.gmane.org/gmane.comp.mozilla.identity.devel/7394 If you believe this bug is still a major issue for you, please comment, submit a pull request, or discuss it on our mailing list: https://lists.mozilla.org/listinfo/dev-identity Sorry for GitHub notification spam! |
See here for an explanation: http://en.wikipedia.org/wiki/Internationalized_domain_name
On PHP $_SERVER['HTTP_HOST'] contains the ASCII version of the 'audience', while the server seems to expect the Unicode version. Unfortunately PHP has no native support to translate one into another. Few servers offer the function idn_to_utf8: http://php.net/manual/en/function.idn-to-utf8.php.
This class can be use as an alternative: http://idnaconv.phlymail.de
But it would be easier if the server support the ASCII version and maybe it even should.
The text was updated successfully, but these errors were encountered: