Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit d3d4b5d

Browse files
disable authentication
1 parent 91efdda commit d3d4b5d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/opencdms_api/main.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,22 @@
2626
def get_app():
2727
app = FastAPI()
2828
climsoft_app = get_climsoft_app()
29+
# if settings.SURFACE_API_ENABLED is True:
30+
# app.mount("/surface", AuthMiddleWare(WSGIMiddleware(surface_application)))
31+
# if settings.MCH_API_ENABLED is True:
32+
# app.mount("/mch", AuthMiddleWare(WSGIMiddleware(mch_api_application)))
33+
# if settings.CLIMSOFT_API_ENABLED is True:
34+
# app.mount("/climsoft", AuthMiddleWare(climsoft_app))
35+
# app.mount("/pygeoapi", AuthMiddleWare(WSGIMiddleware(pygeoapi_app)))
36+
2937
if settings.SURFACE_API_ENABLED is True:
30-
app.mount("/surface", AuthMiddleWare(WSGIMiddleware(surface_application)))
38+
app.mount("/surface", WSGIMiddleware(surface_application))
3139
if settings.MCH_API_ENABLED is True:
32-
app.mount("/mch", AuthMiddleWare(WSGIMiddleware(mch_api_application)))
40+
app.mount("/mch", WSGIMiddleware(mch_api_application))
3341
if settings.CLIMSOFT_API_ENABLED is True:
34-
app.mount("/climsoft", AuthMiddleWare(climsoft_app))
35-
app.mount("/pygeoapi", AuthMiddleWare(WSGIMiddleware(pygeoapi_app)))
42+
app.mount("/climsoft", climsoft_app)
43+
app.mount("/pygeoapi", WSGIMiddleware(pygeoapi_app))
44+
3645

3746
app.include_router(router)
3847

0 commit comments

Comments
 (0)