I need to develop a system to be used by the user. The user will be registered in another system, where we will have the registration, contracted plans and financial control of the same ...
The idea is that when the user attempts to login to their system, instead of authenticating the user information inside the database, he goes to the "master" system, authenticates the user and provides the information of his plan ...
Then from there the user receives the "master" system authentication confirmation and can use your system ...
My question is how do I do this safely? I do not want to expose user information and mainly, I do not want to expose the "master" system that will have very important data inside it ...