How to design website pass (passport)

there are multiple account systems in the existing site, and the unique fields of each account system are different, some by user name, some by mobile phone number, and some by work number.

now the requirement is to create a pass service, unify the accounts of each sub-business system, and log in using one account.

suppose I have three sub-business systems of ABC, and the same user has three accounts, as follows:

    
A    abc
B    2009330
C    15700000000

the plan is to create a pass, use the mobile phone number as the unique identity, and then let the user bind the pass in the sub-business system. Then every time we log in, we use the pass to log in the subsystem, and no binding relationship is found in the subsystem, so the user is forced to bind automatically after login.

key point: the problem with this is. For users to register a pass, the management also needs to register the corresponding account in each subsystem.

how do you design the pass? Is there a good solution to introduce, especially how to design it when there are multiple sub-business systems?

Php
Mar.19,2021

oauth try

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3f40e-2c481.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3f40e-2c481.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?