-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration for backend to limit access to public endpoints #68
Comments
We should write tests for this, too. I'm not sure how possible this will be because the
|
It would be fairly hard to implement these tests right now. A refactor of the backend tests to inherit from the Starlette test framework would make this much easier. That way, an instance of the app can be prepared for testing unique test cases and configurations. (more info in fastapi/full-stack-fastapi-template#111) Moving this to the v1.1.0 milestone as this is related to improving integration tests in general. |
Upgrading to dependencies before we release v1.0.0 made this possible to implement. Tests now use the FastAPI TestClient which makes it possible to alter the app config for individual tests. |
The frontend has some basic configuration that allows either OPEN_FARM_REGISTRATION or INVITE_FARM_REGISTRATION. This needs to be reflected on the backend as well, and ideally use the same environment variables for this configuration.
The text was updated successfully, but these errors were encountered: