Skip to content
Snippets Groups Projects
  1. Feb 15, 2020
  2. Feb 14, 2020
  3. Feb 12, 2020
  4. Feb 02, 2020
  5. Dec 31, 2019
    • Tim van Dijen's avatar
      Refactor routing (#1178) · 54a6d7d1
      Tim van Dijen authored
      
      * Added Kernel class to handle request
      
      * Kernel handle request
      
      Kernel is loaded in SimpleSAML\Module class
      Removed Router and ControllerResolver classes
      
      * Added route command (squash)
      
      * Use symfony application and cache
      
      * Updated to today's standards
      
      * Fix for Symfony4 & Catch environment from ENV variable
      
      * Standardize location of routes/services files
      
      * Trying to make slashes work properly in all situations
      
      * Convert XML to YML
      
      * Fix some template-names and endpoints
      
      * Rename Controller-classes
      
      * Update dependencies
      
      * Fix routing files
      
      * TooManyArguments
      
      * Fix TypeCoercion
      
      * PSR-12
      
      * Fix rebase mistake
      
      * Rebase lock-file
      
      * Fix Psalm
      
      * Add strict_types declaration
      
      Co-authored-by: default avatarSergio Gómez <decano@gmail.com>
      54a6d7d1
  6. Dec 24, 2019
  7. Nov 18, 2019
  8. Oct 01, 2019
  9. Sep 24, 2019
    • Jørn Åne's avatar
      Clean up getConfigItem (#1196) · 0e602c19
      Jørn Åne authored
      * Ensure getConfig* functions can only return Configuration
      
      * Cleanup after #1189
      
      * Deprecate Configuration::getConfigList
      0e602c19
  10. Sep 16, 2019
  11. Sep 06, 2019
  12. Aug 21, 2019
  13. Jun 06, 2019
  14. Feb 03, 2019
  15. Dec 10, 2018
  16. Dec 03, 2018
  17. Nov 20, 2018
  18. Oct 17, 2018
  19. Oct 08, 2018
    • Jaime Pérez Crespo's avatar
      Initial version of routing, requests and responses. · 2ae9f3b1
      Jaime Pérez Crespo authored
      This introduces the following:
      
      - The use of Request objects to handle request data to controllers.
      - The use of Response objects to model responses that should be sent to the browser.
      - The use of "controllers" that are responsible for translating a request into a response.
      - The possibility to define your own URLs on each module by specifying them, together with their controllers, in a "routes.yaml" file in the root of a module.
      - The new UI is completely separated from the old, so "usenewui" must be set to "true" in the configuration.
      - Twigified templates are not used unless we're using the new UI, or the twig template is part of a theme.
      2ae9f3b1
  20. Aug 22, 2018
  21. Aug 13, 2018
  22. Jun 01, 2018
  23. May 31, 2018
  24. Nov 22, 2017
  25. Oct 25, 2017
  26. Oct 19, 2017
  27. Jul 04, 2017
    • Jaime Pérez Crespo's avatar
      Further optimize the SimpleSAML\Module class. · 7b3a5c0d
      Jaime Pérez Crespo authored
      Instead of one cache, we need to use two: one for the list of modules available, and the other for the details for them. Those caches should be filled independently, so that someone calling getModules() does not trigger the code checking of the modules are enabled or finding their hooks.
      7b3a5c0d
  28. Jun 30, 2017
    • Jaime Pérez Crespo's avatar
      Enhance the performance of SimpleSAML\Module. · 4e68df80
      Jaime Pérez Crespo authored
      The issue here is that every time we need to list the modules or check if they are enabled, we just iterate over the modules directory and subdirectories, which is terribly expensive. Instead of doing so, we build a cache of modules specifying if they are enabled or not. In the end, this is also fixing another issue, given that enabling/disabling a module in the middle of a request being processed could lead to inconsistencies and unexpected behaviour (likely exceptions and horrible crashes). Modules should be checked in the beginning of a request and their state (enabled/disabled) frozen until the request is processed to avoid that, and this is the way to achieve so.
      
      Additionally, we take the chance to check if modules are enabled when we search for them. This reduces the processing time to around a third of the original without this fix.
      4e68df80
  29. Mar 09, 2016
  30. Feb 22, 2016
Loading