Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
openid.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2010 at 08:55 UTC
Updated:
17 Mar 2011 at 21:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
nocturn commentedAlso reported in community-id: http://source.keyboard-monkeys.org/issues/show/277
Comment #2
heine commentedCan you give us an account on the Community-ID server + steps to reproduce to debug this?
What does "I disabled and enabled SSL to exclude this as a root cause" exactly mean?
Comment #3
nocturn commentedMy mistake, the Drupal-provider module does work.
Comment #4
nocturn commentedNo problem, please send me a mail to nocturn00 AT gmail DOT com and I'll reply with credentials to the account.
The SSL comment means that you can set up CommunityID to upgrade to SSL on operations like the login screen, I tried with both settings and the result is always the same.
Steps to reproduce:
- Prerequisites: A community-Id account and a Drupal account
- Log into drupal
- Go to My Account
- Click OpenID identities and add the URL from CommunityID
- Result: you get the error above instead of seeing the ID added
Comment #5
heine commentedThanks. I've send the mail.
Comment #6
heine commentedThis is a bug in core.
Community-id supports HTML based discovery. From the spec:
_openid_link_href however uses a simple preg_match and ONLY gives results on link elements where the rel attribute comes first.
So
And that 2nd —perfectly valid— form is what Community-ID returns.
Drupal 7 is also affected, moving to that version so it can be fixed there and backported.
Comment #7
heine commentedPatch against 7.x-dev.
Comment #8
c960657 commentedThis is a duplicate of #469590: Improve robustness of OpenID parsing for link 'rel' and meta 'http-equiv' attributes. I think the patch in comment #9 in that issue represents a more robust approach that parsing HTML using regular expressions.