Posted by Gábor Hojtsy on March 24, 2010 at 12:21pm
8 followers
| 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));
?>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.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| openid-language.patch | 598 bytes | Idle | PASSED: [[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.
#2
I agree that using
$base_urlseems to be the best approach.(I wonder why the test status is "Ignored")
#3
+ $request['openid.realm'] = $base_url .'/';#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
Sounds reasonable.
#7
Committed to CVS HEAD. Thanks.
#8
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
Backport for Drupal 6. Since this is a bug it would be nice to have it commited to Drupal 6.
#11
Uploading patch that works fine with drush make
#12
The last submitted patch, openid-language-d6_751578_10.patch, failed testing.
#13
Needs review. Please.
#14
#11: openid-language-d6_751578_10.patch queued for re-testing.
#15
The last submitted patch, openid-language-d6_751578_10.patch, failed testing.
#16
Rerolling && RTBC.
#17
Sorry, lost the global underway.
#18
Thanks, committed, pushed.
#19
Automatically closed -- issue fixed for 2 weeks with no activity.