how about adding LINK tab to each /user page and form fields to each profile so users can name their openID provider. this is good for sites whose users trust them but don't intend to provide openID server themselves.

CommentFileSizeAuthor
#5 openidurl.module.patch6.98 KBrobloach

Comments

robloach’s picture

Neat idea!

sachinwfs’s picture

I was thinking about this and the easiest way to do it would be to provide some interface for the profile module. Maybe a custom field to each profile that allows a user to enter their forwarding url? I've seen other modules do something like this (cf Auto Time Zone, Authorship, Bio, Profile CSV, and maybe other ones).

I think it would also make sense to only place the forwarding links in a couple of key places rather than on every page:

  • a contact page (contact.module)
  • an about me page (this might be a on-creation page setting as there is no canonical about page)
  • the <front> page

I'm not really sure if I see a need for every posting or view to be able to accept openid requests. Maybe we could provide a field where the administrator could list the specific nodes that should have the functionality. (In addition to the user profile pages, if available)

I've never coded php before, so I'm not sure if I can do this, but I guess I'll give it a shot in the next few weeks.

robloach’s picture

Great brainstorming! A little while ago, I put together a little module (Ohloh), that displayed the user's Ohloh badge if they had one. Modifying this code, we could display the OpenID URL fields in the user's edit profile, if they had the right permissions of course, and then send the user's OpenID URL header information when visiting the user's profile page.

This would make it so that they could log into their OpenID using mywebsite.com/user/123... Or even mywebsite.com/user/sachinwfs if they had pathauto enabled.

robloach’s picture

Assigned: Unassigned » robloach

When I get the time, I'll see what I can do about it.

robloach’s picture

Status: Active » Needs review
StatusFileSize
new6.98 KB

The attached patch will make it so that a user can log into their OpenID by using mysite.com/user/1. It adds personal OpenID URL settings to their own account settings, and adds the OpenID header information when visiting their user profile page. Great idea, moshe!

wim leers’s picture

I use this module to make my domain (http://domain.com) my OpenID URL. This of course means that it's an OpenID delegation that should only be available to the site owner. This is of course only useful for personal homepages. Perhaps this should be put in a separate module to prevent ambiguity?

robloach’s picture

The patch I submitted adds a permission so that only users under the correct role will have the OpenID URL. This means that if you run a group website with a select number of trusted administrators, you can make a "administrator" role, and have the OpenID URL available to only those under that role.

robloach’s picture

..... The idea is that only the administrator can set the global OpenID URL (http://domain.com), and users with the right permissions can set their own personal OpenID URL (http://domain.com/user/123).

robloach’s picture

Title: let all users provide delegations » Let all users provide delegations
Version: 5.x-1.0 » 5.x-1.x-dev
Status: Needs review » Fixed

Committed... Leading towards DRUPAL-6 branch.

wim leers’s picture

Excellent! Thanks :)

Anonymous’s picture

Status: Fixed » Closed (fixed)