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 REST console 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.

  • It is necessary to describe what is already there and what the specific problem is. - anoam
  • What exactly needs to be described? - Sergey SHevchenko
  • Is there already some kind of authorization and how does it work? What exactly is the problem now? That does not work? It is advisable to add code fragments related to the task. The question turned out to be too abstract, it is difficult to give a concrete answer to it. - anoam
  • There is a usual authorization through the form, through the Rest Console in phpstorm I try to log in, it does not work. Here I took the implementation of authorization silex.sensiolabs.org/doc/providers/… - Sergey SHevchenko

0