Home  >  Q&A  >  body text

php - sso single sign-in. Looking for ideas

Hello teachers, I have a question that I haven’t figured out yet? Station A and station B have different databases, for example (one cms, one forum). If you do SSO login, how to synchronize the database? Station A has data but station B has no data. What should I do? Do we need to synchronize the membership tables of the two databases when registering users? How to sync? Please give me some advice

黄舟黄舟2673 days ago923

reply all(3)I'll reply

  • 迷茫

    迷茫2017-05-27 17:44:36

    sso is only a certification center, and other data not related to certification are managed by each project itself

    reply
    0
  • 黄舟

    黄舟2017-05-27 17:44:36

    Build an SSO login verification service interface. When accessing station A and station B, check the local login credentials. If not, request the SSO login service interface to verify whether you have logged in. If you are logged in, set the local login credentials. If you are not logged in, log in through the SSO login interface again. Set local login credentials.

    reply
    0
  • 怪我咯

    怪我咯2017-05-27 17:44:36

    Just make it an independent library C. There is no need to store it in library A and library B

    reply
    0
  • Cancelreply