I believe users shouldn't be expected to add the site's openid to their providers list in their profile. The openid_sso_provider module hides this tab for regular users making it impossible to add this field.

For reference, I am using openid_provider, xrds_simple, openid_sso_provider and openid_sso_relying for in a simple signon set up in drupal 7. I'm hoping to help make these modules more stable. I've added the openid to the authmap table in hook_user_insert() so new users won't have to worry about openids when signing in. It will just work. Going to roll a patch now.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arosboro’s picture

Issue summary: View changes

Updated issue summary.

arosboro’s picture

Here's the patch it adds the provider url to the authmap table for a newly inserted user. Not sure about existing users, maybe that can be done in an update function in the install file.

arosboro’s picture

Status: Active » Needs review
arosboro’s picture

Title: Adding default identity to authmap table for new users » Adding default provider url to authmap table for new users
arosboro’s picture

Status: Needs review » Closed (duplicate)

I have moved this functionality to the Openid SSO Provider issue queue, as I feel it is more appropriate there. Also, I found the proper api calls that need to be made to set the authname in the authmaps table rather than using db_insert. I moved the logic to hook_user_login(), so updating is not an issue.

See #1733544: Add OpenID provider url to user's authmaps after login if you are interested

arosboro’s picture

Issue summary: View changes

Updated issue summary.