Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | openid_provider-Adding-default-provider-url-to-authmap-table-for-new-users-1732850-2.patch | 624 bytes | arosboro |
Comments
Comment #0.0
arosboro CreditAttribution: arosboro commentedUpdated issue summary.
Comment #1
arosboro CreditAttribution: arosboro commentedHere'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.
Comment #2
arosboro CreditAttribution: arosboro commentedComment #3
arosboro CreditAttribution: arosboro commentedComment #4
arosboro CreditAttribution: arosboro commentedI 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
Comment #4.0
arosboro CreditAttribution: arosboro commentedUpdated issue summary.