I registered a user using Google OpenId via example.com and log in was successful. However when tried to log in using http://www.example.com, OSQA thinks it is the first time the registered Google account is used, so it asked for registration again. When tried to registered the same login name and Gmail, OSQA indicates the same user and email has been used.

I have the following config under virtual host context:

ServerName www.example.com
ServerAlias example.com *.example.com

The twitter and facebook logging ins via www.example.com and example.com work well.

asked 12 Jan '11, 14:52

i1der's gravatar image

i1der
865814
accept rate: 0%

edited 12 Jan '11, 20:06

@i1der, you really need to understand that we ABSOLUTELY INSIST that every posting here at meta.osqa.net has a clear, specific question for its title. "Unable to login via www.example.com after registered using example.com using Google OpenId" is a statement, not a question. Please take the time to formulate a clear question, and edit this posting ASAP. Thank you.

(12 Jan '11, 19:37) rickross ♦♦

Thanks Rick, I just edited the title, it is wordy. Let me know if i can improved further.

(12 Jan '11, 20:07) i1der

@i1der, you asked the exact same question a couple hours ago, or at least implicitly, and you even accepted the answer. At the time of this comment, if you go to the index page of this site, your old question shows right bellow this one. I told you before, osqa does not think anything, osqa works with whatever hash google delivers as a response to an authentication request, and google will not respond with the same hash on different domains, even the slightest variation, like non-www vs www. To solve your problem, set up a proper redirect in apache, so all your requests are processed by one of the variations.

link

answered 12 Jan '11, 20:36

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

I have no clue how or why you thought you could use "example.com" for this? That domain is reserved under See RFC 2606, Section 3. You cannot use it for OpenID or any other purpose, so naturally it did not work. It never will!

link

answered 12 Jan '11, 19:34

rickross's gravatar image

rickross ♦♦
12.5k2914972
accept rate: 46%

edited 12 Jan '11, 19:34

2

@Rick, I used example.com is because I do not want to expose my domain name yet, since it is work in progress. It is just an example. http://www.<mydomain>.com (address with http://www.) and <mydomain>.com (address has no protocol sepcified) are causing my Google openId not work properly. Let me restate my problem using meta.osqa.net, if http://www.meta.osqa.net is accessible and points to the same osqa installation as meta.osqa.net, and a user is successfully registered using meta.osqa.net using Google OpenId. Had the same user openned the page at http://www.meta.osqa.net and try to log in with the registered Google OpenId, then OSQA would try to register the user instead of logging in.

(12 Jan '11, 20:21) i1der
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×41
×41
×17

Asked: 12 Jan '11, 14:52

Seen: 872 times

Last updated: 30 Apr '11, 06:00

powered by OSQA