[PATCH] Blogger Authentication Fix (OpenID 1.1 server compatibility)

techtonik - March 13, 2008 - 18:10
Project:OpenID
Version:5.x-1.x-dev
Component:OpenID Client
Category:bug report
Priority:minor
Assigned:Unassigned
Status:reviewed & tested by the community
Description

Current version is unable to authenticate with 1.1 servers (draft Blogger as an example), because it sends unknown fields for 1.1 specification. http://openid.net/specs/openid-authentication-1_1.html#mode_checkid_imme... The patch fixes that.

AttachmentSize
openid.module.patch.txt1.32 KB

#1

techtonik - May 16, 2008 - 11:51
Title:Fix authentication with Blogger (OpenID 1.1 server compatibility fix)» [PATCH] Blogger Authentication Fix (OpenID 1.1 server compatibility)
Priority:normal» critical

Could somebody with write access add this to some release branch finally?

The specific error displayed by Blogger for unpatched Drupal that sends invalid request to 1.1 server is:
error:Invalid AuthRequest: 768: Invalid value for openid.ns field: http://openid.net/signon/1.0

#2

techtonik - May 20, 2008 - 06:39
Status:needs review» reviewed & tested by the community

#3

boxfire - August 31, 2008 - 20:38

Could someone possibly have a patch for version 6 please? People who want to move their blogs from blogger and considering drupal would find this very useful. Thanks

#4

dhax - October 27, 2008 - 19:26

Applying this fix to 6.6 worked for me, though I had to enter my OpenID twice, with the login succeeding on the second try. Annoying, but livable.

#5

vacilando - November 1, 2008 - 16:57

Same problem in Drupal 6 :-(

chrono325, could you please post your function openid_authentication_request from openid.module. When I tried to apply the D5 patch in my D6.6, it still did not work for me. But D6 openid.module is a bit different, so I would like to see the code that is working for you.

#6

Russell McOrmond - November 3, 2008 - 19:14

I would like to confirm that this problem still existed with openid-5.x-1.2 , and that the patch seemed to allow me to add http://mcormond.blogspot.com/ as an OpenID.

#7

DanielTheViking - February 27, 2009 - 10:25

Subscribing.

#8

anarcat - March 18, 2009 - 03:02

Subscribing.

For D6, it's probably better to resubmit the patch in the Drupal core project itself, and have it ported to D7. Only then it *may* be backported to D6.

#9

paganwinter - March 23, 2009 - 07:24

I have used the above patch.
I get this after getting authenticated from Flickr:

    * E-mail address field is required.
    * Accept Terms & Conditions of Use * field is required.
    * OpenID registration failed for the reasons listed. You may register now, or if you already have an account you can log in now and add your OpenID under "My Account"

The Terms of Condition is coming from the Legal module.
And mail id is a mandatory field for Drupal.
But when i proceeded with the Drupal registration form and register myself, I am shown the OpenId I had provided.

So would it be ok if I just suppress the above message and tell the user that the authentication was successful?
If it's only the above stated 2 reasons, then the user should be able to procedd and fill in the Drupal registration form.
But what if there was some other error that occurred while authentication?
Is there some way of finding that out and only then displaying the Failure notification?

#10

paulconolly - May 1, 2009 - 13:39
Priority:critical» minor

I used the patch in v5 and v6. The patch for 6 is slightly different from 5. (see the diff log below)

http://www.heronsoftware.co.uk/trac/projects/logs/drupal6_openid_link1.1...

I made a copy of the core module and worked on that, hence the path in the log is not /modules/openid.

I've tested both versions and they seem to be working fine.

 
 

Drupal is a registered trademark of Dries Buytaert.