Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor Authentication Dependency Injection #2729
To help with testing and to allow authentication to be more configurable + flexible it should be possible to start the API and tile server with different authentication options.
Most authentication methods parse the auth header and either return a user, boolean, or reject the request if authentication fails.
Right now server configuration is handled by stacking traits; however authentication is somewhere near the bottom of this stack. This makes it pretty difficult to override it or replace it (even for testing purposes).
Expected Behavior or Output
Once this task is complete, a new task to fix tests using a mock authentication client should be added