2
1

I'm having a little trouble getting OpenID working, either from the master or from the stackexchange branch. Trying to use ClaimID (which works for me here) produces the following error after typing in the user name and hitting enter:

The OpenId authentication failed: Server denied check_authentication

Just clicking the Google option, without even getting a chance to type my name, produces:

Sorry, but your input is not a valid OpenId

Trying Yahoo actually gets me to the Yahoo site, where I can log in, but the process fails on the return as it seems to be requesting an HTTPS address, and I don't have SSL running locally. Is that required for OpenID? I don't see any https for the ClaimId or Google attempts. Thanks!

asked 16 Mar '10, 00:19

adumlah's gravatar image

adumlah
171469
accept rate: 33%


Digging into the problem, it turned out that the python I'd compiled didn't have SSL support built in. The openid library was throwing an exception trying to use https, and this exception was getting swallowed in OSQA.

Now admittedly I'm a bit of a dolt for not having built python with SSL, but I think it might be helpful for others to log the errors encountered trying to connect to openid services. (Errors that might be of other types, like the service is not running any more etc.)

I suggest the following change to forum_modules/openidauth/consumer.py:

     try:
         auth_request = consumer.begin(user_url)
     except DiscoveryFailure, e:
         logging.debug('openid discovery failure for ' + user_url)
         logging.debug(e)
link

answered 17 Mar '10, 18:10

adumlah's gravatar image

adumlah
171469
accept rate: 33%

Thanks, it's very helpful. This should be reflected in the documentation as well.

(17 Mar '10, 18:16) Evgeny Fadeev

The right approach is to include this change into the software to to put the documentation. I spent a lot of time digging this issue just because the code is missing to log anything.

(23 Feb '11, 14:41) sorin

Hello, this site is running on the latest possible code (and at least 4 more others) and apparently there is in fact a problem with yahoo, but all the others seem to work. Anyway, I'll take a look to see if there's some problem (that may be the reason for yahoo not to work here) and be back to you in a while.

EDIT:

Hello again, I did some changes in the authentication consumer classes, however, I noticed no changes on my test environments, with the exception that now yahoo works again here, although it was still working in other places. I don't know if it will fix anything in your case, but please give it a try (use the master).

As a sidenote, the other day we noticed a small issue in one of the other sites, where yahoo was returning a different hash than it used to be, probably this is somehow related to our problem with yahoo.

Thanks for your feedback.

link

answered 16 Mar '10, 06:50

Hernani%20Cerqueira's gravatar image

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

edited 16 Mar '10, 07:28

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:

×40
×32
×6

Asked: 16 Mar '10, 00:19

Seen: 1,352 times

Last updated: 23 Feb '11, 14:41

powered by OSQA