When a user visits my account -> edit -> authorized sites on a homesite server, an extra site is listed with a blank Realm.
Basically what's happening is everytime a site authenticates to the server a site with an empty realm is created (or updated). This patch fixes that. More details below.
When a site authorizes with the server an entry is added to openid_server_relying_party table. The user is then sent to a form that tells them they're being logged into the site and can optionally check the "Automatically send my information..." checkbox. Submitting this form calls openid_server_send, which attempts to update the relying_party table
openid_server_rp_save($uid, $edit['openid.realm'], $edit['autosubmit']);
However, $edit['openid.realm'] isn't set. This patch sets that value in the form so that empty realms aren't added to the RP table.
Comment | File | Size | Author |
---|---|---|---|
#3 | openid_server_empty_realms_0.patch | 1.61 KB | hadsie |
openid_server_empty_realms.patch | 797 bytes | hadsie |
Comments
Comment #1
hadsie CreditAttribution: hadsie commentedThis is a dupe of: http://drupal.org/node/133406
Comment #2
Chris Johnson CreditAttribution: Chris Johnson commentedWe have tested this patch, and it fixes the problem of creating blank realms in the RP table -- but it does not remove existing bad entries in the RP table. It would be nice to have an update script to run this query:
Comment #3
hadsie CreditAttribution: hadsie commentedI've updated the patch to contain an call to 'update' in the openid_server.install that removes the blank realms.