Answer the question
In order to leave comments, you need to log in
How to implement authorization in another application through a PHP script?
Hello! Such a question: suppose I have some kind of website (or web application) (for example, phpMyAdmin), and there is a script with a button, when clicked, the client should automatically log in to PMA (or another application). Where to dig, and how can authorization be made secure so that the password is not stolen in the process of transferring data from one script to another?
A ready-made solution is not needed (although, if there is one, it is also possible), tell me where to dig, an algorithm of actions.
Answer the question
In order to leave comments, you need to log in
1. Open the debugger (browser dev tools) in phpmyadmin, log in while watching how the request flies
2. Repeat the request, only from the script, using some http client, for example guzzle
3. As soon as it starts, screw all sorts of secure things
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question