Split up openid and openid2 links

Quintasan - February 21, 2008 - 10:08
Project:OpenID URL
Version:5.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Rob Loach
Status:patch (to be ported)
Description

I noticed that Drupal module OpenID doesn't recognize openid.pl domain

#1

Rob Loach - February 21, 2008 - 23:35
Version:6.x-1.0» 6.x-1.x-dev
Status:active» postponed (maintainer needs more info)

OpenID URL implements both OpenID 1 and 2 specs, so I'm not sure what's wrong. In the very least, try updating to a later version of the module.

#2

Rob Loach - March 9, 2008 - 12:43

Could you try it again? I just put in a patch that switches the attributes around... http://drupal.org/node/229877

#3

Rob Loach - June 26, 2008 - 22:41
Title:openid.pl domain isn't supported» Split up openid and openid2 links

Some hosts, like sourceforge, don't support having the two links listed in the same variable, so we should split them up.

<link rel="openid.server" href="http://pip.verisignlabs.com/server" />
<link rel="openid.delegate" href="http://username.pip.verisignlabs.com/" />
<link rel="openid2.provider" href="http://pip.verisignlabs.com/server" />
<link rel="openid2.local_id" href="http://username.pip.verisignlabs.com/" />

#4

Inte - September 12, 2008 - 14:16

I use phpMyID which only supports OpenID 1.1 (AFAIK) and run into some problems.

Removing openid2.provider and openid2.local_id in /sites/all/modules/openidurl/openidurl.module solved it for me.

Maybe you can add a selection, which OpenID-HTML-Headers get included.

For example:

Include following HTML-Headers (make sure which standard your provider supports):
[X] OpenID 1.0
[X] OpenID 1.1
[ ] OpenID 2.0

#5

Rob Loach - September 12, 2008 - 14:15

Great idea, Inte.

#6

Rob Loach - September 12, 2008 - 14:20
Assigned to:Anonymous» Rob Loach

I'll hit it up today. Mind testing 6.x-1.x-dev once it's in? I'd like to do a release sooner then later.

#7

Rob Loach - September 12, 2008 - 17:30

Actually, could you test this with 6.x-1.x-dev now? It already splits the parameters into two different link tags instead of sticking them in the same parameter.....

<?php
    drupal_set_html_head
('<link rel="openid.server" href="'. check_url($server) .'" />');
   
drupal_set_html_head('<link rel="openid.delegate" href="'. check_url($delegate) .'" />');
   
drupal_set_html_head('<link rel="openid2.provider" href="'. check_url($server) .'" />');
   
drupal_set_html_head('<link rel="openid2.local_id" href="'. check_url($delegate) .'" />');
?>

If that works for you, I'll make a release.....

#8

Rob Loach - September 12, 2008 - 17:34

............ Dev should be good..... If not, this'll do it.

AttachmentSize
224793.patch 2.43 KB

#9

Rob Loach - September 12, 2008 - 17:50
Status:postponed (maintainer needs more info)» fixed

After some testing on SourceForge, it still seems to be a problem, so I committed this.

http://drupal.org/cvs?commit=139652

#10

Rob Loach - September 12, 2008 - 17:54
Version:6.x-1.x-dev» 5.x-1.x-dev
Status:fixed» patch (to be ported)

If anyone wants this in the Drupal 5 branch, feel free to send in a patch.

#11

Inte - September 14, 2008 - 10:39

I checked the OpenID 1.1 settings as phpMyID doesn't support OpenID 2.0

It does it's job ... nothing more and nothing less. ;) Thanks for your work.

Maybe someone with a 1.1 & 2.0 compatible provider should run a check including both parameters, before you release a stable version (which I'm waiting for).

 
 

Drupal is a registered trademark of Dries Buytaert.