开发者

What's the strategy to implement single sign-on for two PHP websites?

There are two websites, more are probably coming. One is a simple PHP site and the other is Drupal. The objectives are:

  • to have two user accounts created when a new user registered on any website

optionally:

Any suggestions? Thanks


You could use CAS. There is a drupal module and there is phpCAS. This should work fine but this is no php-only solution. drupal.org itself uses bakery for SSO.


First off you would need to make sure that both websites are able to connect to the same SQL database. If they have different domains you will need to choose one site to be the master gateway to login and checking if they are logged in.


this is Google's method which I think is great .... you can create your own API working the same way

What's the strategy to implement single sign-on for two PHP websites?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜