SATOSA icon indicating copy to clipboard operation
SATOSA copied to clipboard

ModuleRouter: support paths in BASE

Open bajnokk opened this issue 2 years ago • 0 comments

If Satosa is installed under a path which is not the root of the webserver (ie. "https://example.com/satosa"), then endpoint routing must take the base path into consideration.

Some modules registered some of their endpoints with the base path included, but other times the base path was omitted, thus it made the routing fail. Now all endpoint registrations include the base path in their endpoint map.

Additionally, DEBUG logging was configured for the tests so that the debug logs are accessible during testing.

Fixes #404

All Submissions:

  • [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • [x] Have you added an explanation of what problem you are trying to solve with this PR?
  • [x] Have you added information on what your changes do and why you chose this as your solution?
  • [x] Have you written new tests for your changes?
  • [x] Does your submission pass tests?
  • [x] This project follows PEP8 style guide. Have you run your code against the 'flake8' linter?

bajnokk avatar Jul 20 '22 13:07 bajnokk