开发者

How can I create a new user in all my single-sign-on sites when they register on any of them?

I have an existing website written is Perl and have recently added a WordPress blog and BBPress forums. Each of the three systems has its own login mechanism.

To make this a little cleaner I have integrated WordPress and BBPress to enable single sign-on between the two systems which works great. I now want to take the next step and integrate things further so that when someone registers with our site our Perl scripts create a new WordPress user, a new BBPress user (if necessary) and logs the user into all three systems.

Also, when a user returns to the site, I'd lik开发者_如何转开发e to log them back into all three systems. I'd appreciate any advice on how to best accomplish this.


Reverse engineering may be the answer, if you're feeling spunky. Set up an empty WordPress database and dump the SQL emitted by the app while going through the user registration flow. Rinse, repeat for any other WordPress flows that you'd like to emulate in your Perl app.


Why not use LDAP or similar to unify the login, rather than create lots of accounts?


Depends on where perl stores it's data, if that user data it stores is file-based, then just read those files, and integrate perl users with wordpress users.


OpenID implementation, perhaps? If you want some sort of federated login standard that's not LDAP. There's probably a plugin for that if there's one for LDAP.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜