Closed camerondearien closed 3 months ago
Yes, that sounds very reasonable and would be a great addition to this project. Just to confirm, we would end up in the following authentication support matrix:
Component | No authentication | Basic Auth | API Key |
---|---|---|---|
UI | x | x | |
Backend | x | x |
Yup! That would be what we would end up with!
I am currently trying to set up sendGrid-mock with basic auth on the static content for the UI and use api key auth for the endpoints. When enabling basic auth it is being applied to both the static content and the endpoints. This is causing issues for the requests as they now need both the api key auth and basic auth.
I am proposing an update to ExpressApp.js to move the enabling of basic auth under the RequestHandler.
This would have the effect of being able to enable basic auth for the static UI content and having only api key auth on the non-static requests.
If this is something you think would add value I'm more than happy to put up a PR for it.