What is the strategy for implementing single sign-on for two PHP websites?

There are two websites, perhaps more. One is a simple PHP site and the other is Drupal. Objectives:

  • have two user accounts created when registering a new user on any website.

not necessary

  • When a user changes the password on any website, the password is synchronized with another

Any suggestions? Thanks

+3
source share
3 answers

You can use CAS . There is a drupal module , and there is phpCAS . This should work fine, but this is not a php solution. Drupal.org itself uses bakery for SSO.

+3
source

, - SQL. , , , .

+1

This is a Google method that I think is good ... you can create your own APIusing the same method.

enter image description here

0
source

All Articles