Hi, I'd like to integrate the login (and avatars/pictures) for my drupal site with one specific openid provider. If the user doesn't have an account with the openid provider, they shouldn't be able to login. (It's the steam openid provider, and my website is for steam games, so if they don't have any steam games they shouldn't be posting)
The only problem is I'm having a problem thinking how to do this. The way I see it I have 3 options
1) Make a new login backend for drupal. Is this possible? Would it work baring in mind the problems listed below? If so can anyone point me at the relevant pages in the documentation?
2) Force drupals current login system to only allow login via one specific OpenID provider. There doesn't seem to be a way to do this, and even if there was, Drupals OpenID doesn't seem to work with Steams OpenID ( http://steamcommunity.com/openid ), after logging in via steam you get redirected back to drupal which says "OpenID login failed."
3) Someone here comes up with a much better way to do this
Possible problems:
1) On steam any character in a name is valid. Including punctuation, unicode. Will this be a problem with drupal?
2) Allowing the user to have an avatar, which I would automatically grab from the steam community. But not allowing the user to change their avatar. (As it would sync with the avatar they have on the steam community)
Thanks in advance for any help :)
Comments
Wrong Forum
Hi,
This forum is for folks who have already decided to extend Drupal functionality by writing a custom module.
Please take note of the moderator's message:
Please be courteous and post your question in the appropriate forum "Post Installation" :)
You should also visit http://drupal.org/project/Modules and see if any of the existing modules meets your needs.
If you actually read my post,
If you actually read my post, you'd realize that a custom module is on the tables. This is a development question "Make a new login backend for drupal" tends to be more of a module development thing than an installation thing.
Also, I doubt the installation forum is geared to answer questions about the Drupal internals and OpenID.
Please elaborate
Hi,
So you have already started working on your custom module and you have a question on how to use the API? Can you please elaborate, perhaps post some of your code and detail some of the API questions you have :)
I would like to start working
I would like to start working on a custom module to achieve the above goals. Having no knowledge of the drupal core or API, or possible pitfalls, I'm asking for advice.
_
If it were me, the first thing I'd try to do is troubleshoot the openid problem (since that's the proper way to do this). Have you seen #444050: OpenID module not working?