OpenID token from Google (using www)?

Posted by MunkiPhD on Stack Overflow See other posts from Stack Overflow or by MunkiPhD
Published on 2010-03-27T14:50:29Z Indexed on 2010/03/27 14:53 UTC
Read the original article Hit count: 284

Filed under:
|
|

I've come across the following situation when using OpenID and Google as the authenticator.

If you type siteName.com it takes you to http://sitename.com

Which returns a different token than if I were to login to www.siteName.com, which would take me to http://www.siteName.com

As a result, Google returns a different authentication token. Is there a simple fix around this? Maybe redirect the user from siteName.com to www.siteName.com? Would this be a server issue, or is this something I can do programmatically?

Thanks in advance for any answers, this question had plagued me for some time now as I just figured out why others had been receiving different credentials upon logging in.

© Stack Overflow or respective owner

Related posts about openid

Related posts about google