Download & Extend

OpenID realm is language dependent

Project:Drupal core
Version:6.x-dev
Component:openid.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Because the openid.realm is generated as

<?php
url
('', array('absolute' => TRUE));
?>
, the realm will different depending on which language page I'm on. On a default language page it will be http://example.com/ while on a Hungarian page, it will be http://example.com/hu if language path switching is turned on.

What this means is that the relying party will need to maintain multiple records for this site, since it will report different URLs based on which language page I was on.

My initial suggestion is to always use the default language to formulate the OpenID realm. This might however not be good for cases when domains play a part in language negotiation. Or better said, it is just a matter of perception. The same user on different domains showing the same site would probably equally be eligible to use his OpenID, so providing the default site root (without language affecting it) is the best as OpenID realm IMHO.

AttachmentSizeStatusTest resultOperations
openid-language.patch598 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 19,164 pass(es).View details

Comments

#1

In fact, if you have the default language set, the language will be included even in this case in the URL. I think we can just skip using url() and use $base_url directly.

AttachmentSizeStatusTest resultOperations
openid-language.patch1.12 KBIdlePASSED: [[SimpleTest]]: [MySQL] 19,163 pass(es).View details

#2

Status:active» needs review

I agree that using $base_url seems to be the best approach.

(I wonder why the test status is "Ignored")

#3

+    $request['openid.realm'] = $base_url .'/';
Why add a trailing slash?

#4

It is how url() would have generated this before the patch (if without language URL mangling), so for backwards compatibility. Ie. if you already have an association with this URL on another provider, we should send the same URL going forward.

#6

Status:needs review» reviewed & tested by the community

Sounds reasonable.

#7

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks.

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

Hi,

Is this going to be fixed on Drupal 6 as well or is it just for Drupal 7 ?

Thank you.

#10

Version:7.x-dev» 6.x-dev
Status:closed (fixed)» needs review

Backport for Drupal 6. Since this is a bug it would be nice to have it commited to Drupal 6.

AttachmentSizeStatusTest resultOperations
openid-language-6.patch912 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 190 pass(es).View details

#11

Uploading patch that works fine with drush make

AttachmentSizeStatusTest resultOperations
openid-language-d6_751578_10.patch904 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch openid-language-d6_751578_10.patch. Unable to apply patch. See the log in the details link for more information.View details

#12

Status:needs review» needs work

The last submitted patch, openid-language-d6_751578_10.patch, failed testing.

#13

Status:needs work» needs review

Needs review. Please.

#14

#11: openid-language-d6_751578_10.patch queued for re-testing.

#15

Status:needs review» needs work

The last submitted patch, openid-language-d6_751578_10.patch, failed testing.

#16

Status:needs work» reviewed & tested by the community

Rerolling && RTBC.

AttachmentSizeStatusTest resultOperations
openid-language-d6_751578_16.patch599 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 190 pass(es).View details

#17

Sorry, lost the global underway.

AttachmentSizeStatusTest resultOperations
openid-language-d6_751578_17.patch912 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 190 pass(es).View details

#18

Status:reviewed & tested by the community» fixed

Thanks, committed, pushed.

#19

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.