Skip to content
Snippets Groups Projects
  1. Jan 22, 2021
  2. Feb 15, 2020
  3. Dec 24, 2019
  4. Jun 06, 2019
  5. Oct 17, 2018
    • Jaime Pérez Crespo's avatar
      Create an AuthenticationFactory that allows us to create SimpleSAML\Auth\Simple objects. · 6ae2d7f9
      Jaime Pérez Crespo authored
      This is needed to allow dependency injection in that class. Since the first parameter of the constructor is the ID of the auth source to use, we don't know the value it must take during compilation of the container. We only know what auth source to use when we are in the controller, becase at that point the URL as been parsed and the auth source ID has been passed to the controller as an argument. Therefore, we need to add this factory class as a service to the container, and once we have the auth source ID, we can call the create() method of the factory to obtain a relevant instance of \SimpleSAML\Auth\Simple.
      6ae2d7f9
Loading