I am writing a project on Silex, this is the following:
Configure authorization
There is a need to authorize the user through the login form and by some API-key. In the role of the API key can be the same pair login: password, as in the form.
Essence: authorization should work through the form and through the
RESTconsole or curl on the command line. The main thing is that the methods currently available to the appraiser, authorized through the form, are available to a third-party application that sent the login and password of the appraiser.
Please tell me which way to dig.