0

Having a separate mobile site on a subdomain which has the name m.domain instead of domain:

When I try to login on ios devices with openid I get an error page from google but not if I use the site from my desktop.

chrome mobile is ok, it is just safari. I thought those server variables would stay the same no matter what?

Can someone explain that?

EDIT: There really is not much to output in the form of an error except that openid needs to have the "www" in it's authorization request because I compared the strings. It errors in the "realm" variable wich is set by "SERVER['HTTP_HOST']" in the lightopenid library.

Richard
  • 4,516
  • 11
  • 60
  • 87

1 Answers1

0

It might have something to do with your login forms structure, rather than $_SERVER variables as they are provided by the server, and since you are trying to log into the same server, all outcome should be identical no-matter what device you are using.

  • so, how Is it possible to use the site without error from a desktop – Richard Feb 04 '13 at 19:23
  • Why don't you just echo `$_SERVER['HTTP_HOST']` and see it from all devices, instead of trying the login form? The problem can only be with the form –  Feb 04 '13 at 19:27
  • I do not really see your point, it is all the same code(it is the same site) and I already echoed it, that's why I know why I have this error. My only question is how is this possible IF ITS THE SAME CODE? – Richard Feb 04 '13 at 19:30
  • weird, I better test for it with strpos – Richard Feb 04 '13 at 19:39
  • I am not sure, really sure what to tell you, sounds weird. Can you output the error in your question, so everyone can see? –  Feb 04 '13 at 19:40
  • there really is not much to output except that openid needs to have the "www" in it's authorization request because I compared the strings, but I will add this to the question – Richard Feb 04 '13 at 19:47